ajout du prefix custom dans la gestion des erreurs
This commit is contained in:
parent
29bf7c3b4e
commit
8c88ba9efb
1 changed files with 1 additions and 2 deletions
|
@ -34,7 +34,7 @@ async def on_ready():
|
|||
|
||||
@client.event
|
||||
async def on_command_error(ctx, error):
|
||||
if not ctx.invoked_with.startswith('.'):
|
||||
if not ctx.invoked_with.startswith(customPrefix):
|
||||
print(error)
|
||||
await ctx.message.add_reaction(emoji = '❓')
|
||||
|
||||
|
@ -42,7 +42,6 @@ async def on_command_error(ctx, error):
|
|||
async def on_message(message):
|
||||
await client.process_commands(message)
|
||||
|
||||
|
||||
if message.author == client.user:
|
||||
return
|
||||
|
||||
|
|
Reference in a new issue