Interaction
Contains information about components interact event.
client
The DiscordComponents instance.
user
The user who interacted with the component.
Type: Optional[discord.User, discord.Member]
Alias: member
component
The component with which the user interacted.
This is dict if the component was in an ephemeral message.
custom_id
The custom id of interacted component.
Type: str
values
The values of interacted select
Type: Optional[List[str]]
component_type
The component type of interacted component
Type: int
raw_data
The request's raw data
Type: dict
message
The mesage with the component interacted.
guild
The component message’s guild.
Type: discord.Guild
channel
The component message’s channel.
Type: discord.abc.Messageable
interaction_id
The interaction’s ID.
Type: str
interaction_token
The interaction’s token.
Type: str
responded
If responded?
Type: bool
deferred
If deferred?
Type: bool
respond
Sends a response to Discord.
Parameters:
type (
int) - The interaction’s type. (4 ~ 6) Defaults to4.ephemeral (
booldefaults toTrue) - If the response is ephemeral.content (
str) - The response message's content.embed (
discord.Embed) - The response message’s embed.embeds (List[
discord.Embed]) - The response message’s embeds.suppress (
bool)file (
discord.File) - The response message’s file.files (List[
discord.File]) - The response message's files.allowed_mentions (
discord.AllowedMentions) - The response message’s allowed mentions.tts (
booldefaults toFalse) - The response message’s tts.components (List[
discord-components.Component| List[discord-components.Component]]) - The components to send.
Returns: discord-components.ComponentMessage
Last updated
Was this helpful?