SlashCommand class
Represents slash command that is returned from Discord API.
- Inheritance
-
- Object
- SnowflakeEntity
- SlashCommand
Properties
- applicationId ↔ Snowflake
-
Unique id of the parent application
latefinal
- createdAt → DateTime
-
Gets creation timestamp included in
Snowflake
no setterinherited - defaultPermissions ↔ bool
-
Whether the command is enabled by default when the app is added to a guild
latefinal
- description ↔ String
-
Command description shown to the user in the Slash Command UI
latefinal
-
guild
↔ Cacheable<
Snowflake, Guild> ? -
Guild id of the command, if not global
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → Snowflake
-
ID of entity as Snowflake
finalinherited
- name ↔ String
-
Command name to be shown to the user in the Slash Command UI
latefinal
-
options
↔ List<
CommandOption> -
The arguments that the command takes
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ SlashCommandType
-
The type of command
latefinal
Methods
-
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