fix @mention bug

This commit is contained in:
Matthias Nadler 2019-06-29 20:30:40 +02:00
parent 7ba1b2eb56
commit 93f161ddc9

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.ownner:
return
if message.content.startswith("@mention"):
channel = message.channel
if not isinstance(channel, discord.TextChannel):