[NoFlippedTables] No unflippin' in silent channels

This commit is contained in:
aikaterna
2020-09-09 10:26:12 -07:00
committed by GitHub
parent e4fe5c0264
commit 2a27d9012e

View File

@@ -83,6 +83,8 @@ class NoFlippedTables(commands.Cog):
async def on_message(self, message):
channel = message.channel
user = message.author
if not channel.permissions_for(message.guild.me).send_messages:
return
if not message.guild:
return
if hasattr(user, "bot") and user.bot is True: