Interaction

Contains information about components interact event.

client

The DiscordComponents instance.

Type: discord-components.DiscordComponents

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.

Type: discord-components.Component

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.

Type: discord-components.ComponentMessage

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

Last updated