fix @mention bug

This commit is contained in:
Matthias Nadler committed 2019-06-29 20:31:42 +02:00
1 parent 7ba1b2eb56
commit 888b66102a
1 file changed
+3
+3
View File
@@ -260,6 +260,9 @@ class Help(commands.Cog):
# @mention and @debug commands
@commands.Cog.listener()
async def on_message(self, message):
if message.author == self.bot.owner:
return
if message.content.startswith("@mention"):
channel = message.channel
if not isinstance(channel, discord.TextChannel):