From ec730e819206c7555db209e40c53661408fd09fc Mon Sep 17 00:00:00 2001 From: FrozenChen Date: Sun, 19 Nov 2023 20:05:12 -0300 Subject: [PATCH] events.py: Suppress embeds for non-approved invite logs --- cogs/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/events.py b/cogs/events.py index 15702b953..8edb2e9f4 100644 --- a/cogs/events.py +++ b/cogs/events.py @@ -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()