From b752bfd153507ff54ff999c2d5272da15f6c8ec1 Mon Sep 17 00:00:00 2001 From: bobloy Date: Tue, 6 Jul 2021 13:50:15 -0400 Subject: [PATCH] Stop looking at DMs --- chatter/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatter/chat.py b/chatter/chat.py index 1b81959..66ff116 100644 --- a/chatter/chat.py +++ b/chatter/chat.py @@ -643,7 +643,7 @@ class Chatter(Cog): guild: discord.Guild = getattr(message, "guild", None) - if await self.bot.cog_disabled_in_guild(self, guild): + if guild is None or await self.bot.cog_disabled_in_guild(self, guild): return ctx: commands.Context = await self.bot.get_context(message)