diff options
author | 2019-01-07 19:51:16 +0100 | |
---|---|---|
committer | 2019-01-07 19:51:16 +0100 | |
commit | e3ace591d9dca2d4ab95c7b07d6af3e6fc84b7c3 (patch) | |
tree | 1e03f0cf881b2a233dbe0e04e78094517cdf4710 | |
parent | Modifying 'send_log_message' so it supports sending additional embeds to the ... (diff) |
Changing the way in which the filter_rich_embed sends the embeds to mod_log.send_log_message
-rw-r--r-- | bot/cogs/filtering.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/bot/cogs/filtering.py b/bot/cogs/filtering.py index 67ff9d0bf..5c6ed9c26 100644 --- a/bot/cogs/filtering.py +++ b/bot/cogs/filtering.py @@ -185,6 +185,8 @@ class Filtering: log.debug(message) + additional_embeds = msg.embeds if filter_name == "filter_rich_embeds" else None + # Send pretty mod log embed to mod-alerts await self.mod_log.send_log_message( icon_url=Icons.filtering, @@ -194,16 +196,10 @@ class Filtering: thumbnail=msg.author.avatar_url_as(static_format="png"), channel_id=Channels.mod_alerts, ping_everyone=Filter.ping_everyone, + additional_embeds=additional_embeds, ) # If filtering rich embeds, also send the removed embeds to mod_alerts - if filter_name == "filter_rich_embeds": - await self.mod_log.send_log_embeds( - embeds=msg.embeds, - content="The message contained the following embed(s):\n", - channel_id=Channels.mod_alerts, - ) - break # We don't want multiple filters to trigger @staticmethod |