File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments