diff options
| -rw-r--r-- | bot/exts/moderation/modlog.py | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/moderation/modlog.py b/bot/exts/moderation/modlog.py index 375956dd3..0dc2e84b5 100644 --- a/bot/exts/moderation/modlog.py +++ b/bot/exts/moderation/modlog.py @@ -525,9 +525,9 @@ class ModLog(Cog, name="ModLog"):          if message.author.bot or not message.guild:              return True -        return self.is_raw_message_blacklisted(message.guild.id, message.channel.id) +        return self.is_channel_ignored(message.channel.id) -    def is_raw_message_blacklisted(self, channel_id: int) -> bool: +    def is_channel_ignored(self, channel_id: int) -> bool:          """          Return true if the channel, or parent channel in the case of threads, passed should be ignored by modlog. @@ -613,7 +613,7 @@ class ModLog(Cog, name="ModLog"):      @Cog.listener()      async def on_raw_message_delete(self, event: discord.RawMessageDeleteEvent) -> None:          """Log raw message delete event to message change log.""" -        if self.is_raw_message_blacklisted(event.guild_id, event.channel_id): +        if self.is_channel_ignored(event.channel_id):              return          await asyncio.sleep(1)  # Wait here in case the normal event was fired  |