Skip to content

Commit

Permalink
fix: remove undocumented interaction_metadata.name again
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftinv committed Nov 25, 2024
1 parent c2ee995 commit 746f104
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions disnake/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -809,7 +806,6 @@ class InteractionMetadata:
"user",
"authorizing_integration_owners",
"original_response_message_id",
"name",
"target_user",
"target_message_id",
"interacted_message_id",
Expand All @@ -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
)
Expand Down
3 changes: 0 additions & 3 deletions disnake/types/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 746f104

Please sign in to comment.