Interaction class Null safety

The Interaction data. e.g channel, guild and member

Inheritance

Properties

args Iterable<InteractionOption>
Args of the interaction
read / write, final, late
author Member
The member who sent the interaction
read / write, final, late
channel Cacheable<Snowflake, TextChannel>
The channel the command was sent in.
read / write, final, late
commandId Snowflake
Id of command
read / write, final, late
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
guild Cacheable<Snowflake, Guild>?
The guild the command was sent in.
read / write, final, late
hashCode int
The hash code for this object. [...]
read-only, inherited
id Snowflake
ID of entity as Snowflake
final, inherited
name String
Name of interaction
read / write, final, late
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
token String
Token to send requests
read / write, final, late
type int
The type of the interaction received.
read / write, final, late
version int
Version of interactions api
read / write, final, late

Methods

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. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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