aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/modlog.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/cogs/modlog.py b/bot/cogs/modlog.py
index 1d1546d5b..ef4544f81 100644
--- a/bot/cogs/modlog.py
+++ b/bot/cogs/modlog.py
@@ -123,7 +123,8 @@ class ModLog:
if ping_everyone:
content = "@everyone"
- await self.bot.get_channel(channel_id).send(content=content, embed=embed, files=files)
+ log_message = await self.bot.get_channel(channel_id).send(content=content, embed=embed, files=files)
+ return self.bot.get_context(log_message) # Optionally return for use with antispam
async def on_guild_channel_create(self, channel: GUILD_CHANNEL):
if channel.guild.id != GuildConstant.id: