Stop looking at DMs

This commit is contained in:
bobloy 2021-07-06 13:50:15 -04:00
parent 47269ba8f4
commit b752bfd153

View File

@ -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)