Skip to content

Commit

Permalink
events.py: Suppress embeds for non-approved invite logs
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenChen committed Nov 19, 2023
1 parent e7f05b3 commit ec730e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async def scan_message(self, message: discord.Message, is_edit=False):
f"✉️ **Invite posted**: {message.author.mention} posted an invite link in {message.channel.mention}"
f" {'(message deleted)' if non_approved_invites else ''}"
f"\n------------------\n"
f"{self.bot.escape_text(message.content)}")
f"{self.bot.escape_text(message.content)}", suppress_embeds=any(non_approved_invites))
if non_approved_invites:
try:
await message.delete()
Expand Down

0 comments on commit ec730e8

Please sign in to comment.