[NoFlippedTables] No tables in dms

This commit is contained in:
aikaterna
2019-12-11 08:59:45 -08:00
committed by GitHub
parent fe3097a928
commit c5ada7df8a

View File

@@ -79,6 +79,8 @@ class NoFlippedTables(commands.Cog):
async def on_message(self, message):
channel = message.channel
user = message.author
if not message.guild:
return
if hasattr(user, "bot") and user.bot is True:
return
toggle = await self.config.guild(message.guild).TOGGLE()