SlashCommandInteraction class Null safety

Interaction for slash command



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


getArg(String name) → dynamic
Allows to fetch argument value by argument name
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(dynamic other) bool
The equality operator. [...]