Fix app_command_completion triggering on certain errors

This commit is contained in:
Rapptz
2022-08-16 19:57:44 -04:00
parent 7be0779b65
commit bd19ad05e7
3 changed files with 11 additions and 1 deletions

View File

@ -462,6 +462,7 @@ class HybridAppCommand(discord.app_commands.Command[CogT, P, T]):
if not ctx.command_failed:
bot.dispatch('command_completion', ctx)
interaction.command_failed = ctx.command_failed
return value