Skip to content

Commit 28e408d

Browse files
authored
docs: Redocument CommandContext (#530)
1 parent 8cba961 commit 28e408d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

interactions/context.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ class CommandContext(Context):
8282
:ivar Snowflake id: The ID of the interaction.
8383
:ivar Snowflake application_id: The application ID of the interaction.
8484
:ivar InteractionType type: The type of interaction.
85-
:ivar str name: The name of the command in the interaction.
86-
:ivar Optional[str] description?: The description of the command in the interaction.
87-
:ivar Optional[List[Option]] options?: The options of the command in the interaction, if any.
88-
:ivar InteractionData data: The application command data.
85+
:ivar InteractionData data?: The application command data.
86+
:ivar Optional[Union[Message, Member, User]] target: The target selected if this interaction is invoked as a context menu.
8987
:ivar str token: The token of the interaction response.
90-
:ivar Snowflake channel_id: The ID of the current channel.
91-
:ivar Snowflake guild_id: The ID of the current guild.
88+
:ivar Snowflake guild_id?: The ID of the current guild.
89+
:ivar Snowflake channel_id?: The ID of the current channel.
9290
:ivar bool responded: Whether an original response was made or not.
9391
:ivar bool deferred: Whether the response was deferred or not.
92+
:ivar str locale?: The selected language of the user invoking the interaction.
93+
:ivar str guild_locale?: The guild's preferred language, if invoked in a guild.
9494
"""
9595

9696
__slots__ = (
@@ -113,7 +113,6 @@ class CommandContext(Context):
113113
"channel_id",
114114
"responded",
115115
"deferred",
116-
#
117116
"locale",
118117
"guild_locale",
119118
)

0 commit comments

Comments
 (0)