fix @mention bug
This commit is contained in:
parent
7ba1b2eb56
commit
93f161ddc9
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user