diff options
| author | 2018-12-29 13:10:38 -0500 | |
|---|---|---|
| committer | 2018-12-29 13:10:38 -0500 | |
| commit | 9bec011dee4ef3f0968aa44d2459a9367d25313c (patch) | |
| tree | 08c37b340d77b0fc96dde1cd9fe2f8658cf0b4cd | |
| parent | Merge pull request #227 from python-discord/group-dm-invites (diff) | |
Add optional return to modlog post coro
Enables generation of a context for AntiSpam to reference for posting infractions
| -rw-r--r-- | bot/cogs/modlog.py | 3 |
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: |