From 746f104facd7941556303a8575f13b4c06a77146 Mon Sep 17 00:00:00 2001 From: shiftinv Date: Mon, 25 Nov 2024 18:02:44 +0100 Subject: [PATCH] fix: remove undocumented `interaction_metadata.name` again --- disnake/message.py | 5 ----- disnake/types/interactions.py | 3 --- 2 files changed, 8 deletions(-) diff --git a/disnake/message.py b/disnake/message.py index 4940be214c..ad245ea119 100644 --- a/disnake/message.py +++ b/disnake/message.py @@ -780,9 +780,6 @@ class InteractionMetadata: The ID of the original response message. Only present on :attr:`~Interaction.followup` messages. - name: Optional[:class:`str`] - The name of the command, including group and subcommand name if applicable (separated by spaces). - Only present on :attr:`InteractionType.application_command` interactions. target_user: Optional[:class:`User`] The ID of the message the command was run on. Only present on :attr:`InteractionType.application_command` interactions of @@ -809,7 +806,6 @@ class InteractionMetadata: "user", "authorizing_integration_owners", "original_response_message_id", - "name", "target_user", "target_message_id", "interacted_message_id", @@ -835,7 +831,6 @@ def __init__(self, *, state: ConnectionState, data: InteractionMetadataPayload) ) # application command/type 2 only - self.name: Optional[str] = data.get("name") self.target_user: Optional[User] = ( state.store_user(target_user) if (target_user := data.get("target_user")) else None ) diff --git a/disnake/types/interactions.py b/disnake/types/interactions.py index 1d74c431e5..1b7a209894 100644 --- a/disnake/types/interactions.py +++ b/disnake/types/interactions.py @@ -360,9 +360,6 @@ class _BaseInteractionMetadata(TypedDict): class ApplicationCommandInteractionMetadata(_BaseInteractionMetadata): - # TODO: consider removing this again - name: str # not documented - target_user: NotRequired[User] # only on user command interactions target_message_id: NotRequired[Snowflake] # only on message command interactions