diff options
author | 2022-08-19 07:54:28 +0300 | |
---|---|---|
committer | 2022-08-19 07:54:28 +0300 | |
commit | 8f35578d198f16f4df1a3958d2f747f998baf9bc (patch) | |
tree | fdf4bbd9bc85a2a948d08c7858ba39add9b95652 | |
parent | fix: don't include replied mentions in mention filter (#2017) (diff) | |
parent | Merge branch 'main' into channel.guild-nullable (diff) |
Merge pull request #2260 from Dorukyum/channel.guild-nullable
-rw-r--r-- | bot/exts/moderation/modlog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/modlog.py b/bot/exts/moderation/modlog.py index 67991730e..efa87ce25 100644 --- a/bot/exts/moderation/modlog.py +++ b/bot/exts/moderation/modlog.py @@ -552,7 +552,7 @@ class ModLog(Cog, name="ModLog"): channel = self.bot.get_channel(channel_id) # Ignore not found channels, DMs, and messages outside of the main guild. - if not channel or not hasattr(channel, "guild") or channel.guild.id != GuildConstant.id: + if not channel or channel.guild is None or channel.guild.id != GuildConstant.id: return True # Look at the parent channel of a thread. |