Interaction<T> class abstract

An interaction sent by Discord when a user interacts with an ApplicationCommand, a MessageComponent or a ModalBuilder.

Implementers

Properties

applicationId Snowflake
The ID of the application this interaction is for.
final
appPermissions Permissions
The permissions of the application that triggered this interaction.
final
authorizingIntegrationOwners Map<ApplicationIntegrationType, Snowflake>?
Mapping of installation contexts that the interaction was authorized for to related user or guild IDs.
final
channel PartialChannel?
The channel this interaction was triggered in.
final
channelId Snowflake?
The ID of the channel this interaction was triggered in.
final
context InteractionContextType?
Context where the interaction was triggered from.
final
data → T
The data payload associated with this interaction.
final
entitlements List<Entitlement>
The entitlements for the user and guild of this interaction.
final
guild PartialGuild?
The guild in which this interaction was triggered.
no setter
guildId Snowflake?
The ID of the guild this interaction was triggered in.
final
guildLocale Locale?
The preferred locale of the guild in which this interaction was triggered.
final
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
The ID of this interaction.
final
locale Locale?
The preferred locale of the user that triggered this interaction.
final
manager InteractionManager
The manager for this interaction.
final
member Member?
The member that triggered this interaction.
final
message Message?
The message this interaction was triggered on.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
The token to use when responding to this interaction.
final
type InteractionType
The type of this interaction.
final
user User?
The user that triggered this interaction.
final
version int
The interaction version.
final

Methods

defaultToString() String
Same as toString, but only called when dart:mirrors is not available.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited