diff --git a/discord/interactions.py b/discord/interactions.py index ba3511078..ab9512e04 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -694,9 +694,13 @@ class InteractionCallback(Generic[ClientT]): self.interaction_type: InteractionType = try_enum(InteractionType, interaction['type']) self.activity_instance_id: Optional[str] = interaction.get('activity_instance_id') response_id = interaction.get('response_message_id') - self.response_message_id: Optional[int] = int( - response_id, - ) if response_id is not None else None + self.response_message_id: Optional[int] = ( + int( + response_id, + ) + if response_id is not None + else None + ) self.response_message_loading: Optional[bool] = interaction.get('response_message_loading') self.response_message_ephemeral: Optional[bool] = interaction.get('response_message_ephemeral') diff --git a/discord/types/interactions.py b/discord/types/interactions.py index d6e1c289e..fdbc03ede 100644 --- a/discord/types/interactions.py +++ b/discord/types/interactions.py @@ -42,7 +42,16 @@ if TYPE_CHECKING: InteractionType = Literal[1, 2, 3, 4, 5] -InteractionResponseType = Literal[1, 4, 5, 6, 7, 8, 9, 10,] +InteractionResponseType = Literal[ + 1, + 4, + 5, + 6, + 7, + 8, + 9, + 10, +] InteractionContextType = Literal[0, 1, 2] InteractionInstallationType = Literal[0, 1]