We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f2eebf commit 976a0e9Copy full SHA for 976a0e9
bot/exts/moderation/modlog.py
@@ -539,7 +539,7 @@ def is_channel_ignored(self, channel_id: int) -> bool:
539
channel = self.bot.get_channel(channel_id)
540
541
# Ignore not found channels, DMs, and messages outside of the main guild.
542
- if not channel or channel.guild and channel.guild.id != GuildConstant.id:
+ if not channel or not hasattr(channel, "guild") or channel.guild.id != GuildConstant.id:
543
return True
544
545
# Look at the parent channel of a thread.
0 commit comments