mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Fix app_command_completion triggering on certain errors
This commit is contained in:
@ -116,6 +116,9 @@ class Interaction:
|
||||
A dictionary that can be used to store extraneous data for use during
|
||||
interaction processing. The library will not touch any values or keys
|
||||
within this dictionary.
|
||||
command_failed: :class:`bool`
|
||||
Whether the command associated with this interaction failed to execute.
|
||||
This includes checks and execution.
|
||||
"""
|
||||
|
||||
__slots__: Tuple[str, ...] = (
|
||||
@ -132,6 +135,7 @@ class Interaction:
|
||||
'locale',
|
||||
'guild_locale',
|
||||
'extras',
|
||||
'command_failed',
|
||||
'_permissions',
|
||||
'_app_permissions',
|
||||
'_state',
|
||||
@ -155,6 +159,7 @@ class Interaction:
|
||||
# an interaction. This is mainly for internal purposes and it gives it a free-for-all slot.
|
||||
self._baton: Any = MISSING
|
||||
self.extras: Dict[Any, Any] = {}
|
||||
self.command_failed: bool = False
|
||||
self._from_data(data)
|
||||
|
||||
def _from_data(self, data: InteractionPayload):
|
||||
|
Reference in New Issue
Block a user