gestion erreur quand message inexistant lors d'une erreur (slash command)
This commit is contained in:
parent
aec56fd0fc
commit
4440372dbb
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ async def on_ready():
|
|||
async def on_command_error(ctx, error):
|
||||
if not ctx.invoked_with.startswith(customPrefix):
|
||||
print(error)
|
||||
await ctx.message.add_reaction(emoji = '❓')
|
||||
if "discord.errors.NotFound" in str(error) == False:
|
||||
await ctx.message.add_reaction(emoji = '❓')
|
||||
|
||||
@client.event
|
||||
async def on_message(message):
|
||||
|
|
Reference in a new issue