Fix app_command_completion triggering on certain errors

This commit is contained in:
Rapptz committed 2022-08-16 20:03:02 -04:00
1 parent 7be0779b65
commit bd19ad05e7
3 files changed
+11 -1

No files matched your search

+1
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