Add on_app_command_completion event

Fix #8126
This commit is contained in:
Rapptz
2022-08-15 09:19:01 -04:00
parent 0b69148c84
commit 0ec06f0ac5
2 changed files with 16 additions and 0 deletions

View File

@ -215,6 +215,18 @@ App Commands
:param payload: The raw event payload data.
:type payload: :class:`RawAppCommandPermissionsUpdateEvent`
.. function:: on_app_command_completion(interaction, command)
Called when a :class:`app_commands.Command` or :class:`app_commands.ContextMenu` has
successfully completed without error.
.. versionadded:: 2.0
:param interaction: The interaction of the command.
:type interaction: :class:`Interaction`
:param command: The command that completed successfully
:type command: Union[:class:`app_commands.Command`, :class:`app_commands.ContextMenu`]
AutoMod
~~~~~~~~