Skip to content

Commit d99ef79

Browse files
committed
Fix automod actions triggering filter
1 parent 16e8300 commit d99ef79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cogs/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ async def channel_spam_check(self, message: discord.Message):
419419

420420
@commands.Cog.listener()
421421
async def on_message(self, message: discord.Message):
422-
if message.guild is None or message.author.bot:
422+
if message.guild is None or message.author.bot or message.type is discord.MessageType.auto_moderation_action:
423423
return
424424
if not self.bot.IS_DOCKER:
425425
if message.author.name == "GitHub" and message.author.discriminator == "0000":

0 commit comments

Comments
 (0)