ignore what is not a command
This commit is contained in:
parent
7a7c3dc93e
commit
51f270dafb
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@ async def on_command_error(ctx, error):
|
|||
"""Triggered when a command enconter an error"""
|
||||
if isinstance(error, commands.errors.CommandNotFound): # si commande inconnu
|
||||
if ctx.message: # si pas une commande slash
|
||||
await addReaction(ctx.message, 1) # ajout réaction
|
||||
if not ctx.invoked_with.startswith(f"{customPrefix}"):
|
||||
await addReaction(ctx.message, 1) # ajout réaction
|
||||
return
|
||||
else:
|
||||
raise error
|
||||
|
|
Reference in a new issue