From f9388454a5cae33f47ba79c32c3989cf943fdd68 Mon Sep 17 00:00:00 2001 From: bobloy Date: Thu, 10 Sep 2020 21:22:50 -0400 Subject: [PATCH] Another guild bug --- chatter/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatter/chat.py b/chatter/chat.py index a81e669..ad8e37b 100644 --- a/chatter/chat.py +++ b/chatter/chat.py @@ -463,7 +463,7 @@ class Chatter(Cog): # Thank you Cog-Creators channel: discord.TextChannel = message.channel - if channel.id == await self.config.guild(guild).chatchannel(): + if guild is not None and channel.id == await self.config.guild(guild).chatchannel(): pass # good to go else: when_mentionables = commands.when_mentioned(self.bot, message)