From 19cb329436b1f41d4da06a38553267c5b0d612f4 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 8 Jun 2021 10:44:56 +0200 Subject: [PATCH] correction ajout reaction en erreur --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index fee6cdb..5550251 100644 --- a/src/main.py +++ b/src/main.py @@ -35,7 +35,7 @@ async def on_ready(): async def on_command_error(ctx, error): if not ctx.invoked_with.startswith(customPrefix): print(error) - if "discord.errors.NotFound" in str(error) == False: + if ctx.message: await ctx.message.add_reaction(emoji = '❓') @client.event