SlashCommandInteraction class

Interaction for slash command

Inheritance

Properties

channel ↔ Cacheable<Snowflake, TextChannel>
The channel the command was sent in.
latefinalinherited
commandId ↔ Snowflake
Id of command
latefinal
createdAt DateTime
Gets creation timestamp included in Snowflake
no setterinherited
guild ↔ Cacheable<Snowflake, Guild>?
The guild the command was sent in.
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
id → Snowflake
ID of entity as Snowflake
finalinherited
memberAuthor ↔ Member?
The member who sent the interaction
latefinalinherited
memberAuthorPermissions ↔ Permissions?
Permission of member who sent the interaction. Will be set if memberAuthor is not null
latefinalinherited
name String
Name of interaction
latefinal
options Iterable<InteractionOption>
Args of the interaction
latefinal
resolved InteractionDataResolved?
Additional data for command
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
Token to send requests
latefinalinherited
type int
The type of the interaction received.
latefinalinherited
userAuthor ↔ User?
The user who sent the interaction.
latefinalinherited
version int
Version of interactions api
latefinalinherited

Methods

getArg(String name) → dynamic
Allows to fetch argument value by argument name
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 ==(dynamic other) bool
The equality operator.
inherited