inversion pour l'affichage des erreurs en cas de suppression du message de la commande

This commit is contained in:
Mylloon 2020-12-23 01:37:12 +01:00
parent 3700653cf5
commit 2735db1ec7

View file

@ -83,8 +83,8 @@ async def on_raw_reaction_remove(payload):
@client.event @client.event
async def on_command_error(ctx, error): async def on_command_error(ctx, error):
if not ctx.invoked_with.startswith('.'): if not ctx.invoked_with.startswith('.'):
await ctx.message.add_reaction(emoji = '')
print(error) print(error)
await ctx.message.add_reaction(emoji = '')
@client.event @client.event
async def on_message(message): async def on_message(message):