Skip to content

Commit 2bd9d60

Browse files
authored
Spam Detector: drop message reference when reporting spam; only channels in the target channel can be referenced (#137)
1 parent 9651c62 commit 2bd9d60

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cogs/spam.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ async def send_alert(self, message: discord.Message) -> None:
7979
msg = f"<@&{self.mod_role_id}> Spam detected "
8080
msg += f"by {message.author.name} in {message.channel.name}: {message.jump_url}"
8181
assert isinstance(self.mod_channel, discord.TextChannel)
82-
await self.mod_channel.send(
83-
msg,
84-
reference=message,
85-
allowed_mentions=discord.AllowedMentions(roles=True),
86-
)
82+
await self.mod_channel.send(msg)
8783

8884
@commands.Cog.listener()
8985
async def on_message(self, message: discord.Message) -> None:

0 commit comments

Comments
 (0)