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.
2 parents 5f2eebf + 976a0e9 commit 7346131Copy full SHA for 7346131
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