fix @mention bug
This commit is contained in:
parent
7ba1b2eb56
commit
888b66102a
@ -260,6 +260,9 @@ class Help(commands.Cog):
|
|||||||
# @mention and @debug commands
|
# @mention and @debug commands
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_message(self, message):
|
async def on_message(self, message):
|
||||||
|
if message.author == self.bot.owner:
|
||||||
|
return
|
||||||
|
|
||||||
if message.content.startswith("@mention"):
|
if message.content.startswith("@mention"):
|
||||||
channel = message.channel
|
channel = message.channel
|
||||||
if not isinstance(channel, discord.TextChannel):
|
if not isinstance(channel, discord.TextChannel):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user