aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Shivansh-007 <[email protected]>2021-03-04 16:46:47 +0530
committerGravatar Shivansh-007 <[email protected]>2021-10-11 12:05:28 +0530
commitd52127300289d1e054c931cc3493e239f914cf27 (patch)
treeec60e83244dead03eb06e159524670ec00c7e546
parentUse MessageConverter to find messages (diff)
Use str() when checking for message.content
-rw-r--r--bot/exts/moderation/incidents.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/incidents.py b/bot/exts/moderation/incidents.py
index 198224b83..9ee1407d4 100644
--- a/bot/exts/moderation/incidents.py
+++ b/bot/exts/moderation/incidents.py
@@ -477,7 +477,7 @@ class Incidents(Cog):
async def on_message(self, message: discord.Message) -> None:
"""Pass `message` to `add_signals` if and only if it satisfies `is_incident`."""
if is_incident(message):
- message_links = DISCORD_MESSAGE_LINK_RE.findall(message.content)
+ message_links = DISCORD_MESSAGE_LINK_RE.findall(str(message.content))
print(message_links)
if message_links: