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,6 +36,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:
|
||||
await ctx.message.add_reaction(emoji = '❓')
|
||||
|
||||
@client.event
|
||||
|
|
Reference in a new issue