SlashCommand class Null safety

Represents slash command that is returned from Discord API.



applicationId Snowflake
Unique id of the parent application
late, final
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
defaultPermissions bool
Whether the command is enabled by default when the app is added to a guild
late, final
description String
Command description shown to the user in the Slash Command UI
late, final
guild Cacheable<Snowflake, Guild>?
Guild id of the command, if not global
late, final
hashCode int
The hash code for this object. [...]
read-only, inherited
id Snowflake
ID of entity as Snowflake
final, inherited
name String
Command name to be shown to the user in the Slash Command UI
late, final
options List<CommandOption>
The arguments that the command takes
late, final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type SlashCommandType
The type of command
late, final


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. [...]