Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions interactions/client/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ async def send(
:param Optional[Union[ActionRow, Button, SelectMenu, List[Union[ActionRow, Button, SelectMenu]]]] components: A component, or list of components for the message.
:param Optional[bool] ephemeral: Whether the response is hidden or not.
:param Optional[bool] suppress_embeds: Whether embeds are not shown in the message.
:return: The sent message as a dict.
:rtype: Tuple[dict, Union[File, List[File]]]
:return: The sent message.
"""
if (
content is MISSING
Expand Down Expand Up @@ -299,8 +298,7 @@ async def edit(
:param Optional[Union[AllowedMentions, dict]] allowed_mentions: The allowed mentions for the message.
:param Optional[MessageReference] message_reference: Include to make your message a reply.
:param Optional[Union[ActionRow, Button, SelectMenu, List[Union[ActionRow, Button, SelectMenu]]]] components: A component, or list of components for the message.
:return: The edited message as a dict.
:rtype: dict
:return: The edited message.
"""

payload = {}
Expand Down Expand Up @@ -703,8 +701,8 @@ class ComponentContext(_Context):
:ivar User user: The user data model.
:ivar bool responded: Whether an original response was made or not.
:ivar bool deferred: Whether the response was deferred or not.
:ivar str locale: The selected language of the user invoking the interaction.
:ivar str guild_locale: The guild's preferred language, if invoked in a guild.
:ivar Optional[Locale] locale: The selected language of the user invoking the interaction.
:ivar Optional[Locale] guild_locale: The guild's preferred language, if invoked in a guild.
:ivar str app_permissions: Bitwise set of permissions the bot has within the channel the interaction was sent from.
"""

Expand Down