From e3ace591d9dca2d4ab95c7b07d6af3e6fc84b7c3 Mon Sep 17 00:00:00 2001 From: SebastiaanZ <33516116+SebastiaanZ@users.noreply.github.com> Date: Mon, 7 Jan 2019 19:51:16 +0100 Subject: Changing the way in which the filter_rich_embed sends the embeds to mod_log.send_log_message --- bot/cogs/filtering.py | 10 +++------- 1 file 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 -- cgit v1.2.3