SlashCommand class Null safety
A slash command, can only be instantiated through a method on Interactions
Properties
-
args
↔ List<
CommandArg> -
The arguments that the command takes
read / write, final, late
- description ↔ String
-
Command description shown to the user in the Slash Command UI
read / write, final, late
-
guild
↔ Cacheable<
Snowflake, Guild> ? -
The guild that the slash Command is registered in. This can be null if its a global command.
read / write, final, late
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isGlobal ↔ bool
-
If the command is a global on, false if restricted to a guild.
read / write, final, late
- isRegistered ↔ bool
-
If the command has been registered with the discord api
read / write
- name ↔ String
-
Command name to be shown to the user in the Slash Command UI
read / write, final, late
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
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 ==(
Object other) → bool -
The equality operator. [...]
inherited