CommandOption class
An argument for a SlashCommand.
Properties
-
choices
↔ List<
ArgChoice> -
Choices for CommandOptionType.string and CommandOptionType.string types for the user to pick from
latefinal
- description ↔ String
-
The description of your argument / sub-group.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String
-
The name of your argument / sub-group.
latefinal
-
options
↔ List<
CommandOption> -
If the option is a subcommand or subcommand group type, this nested options will be the parameters
latefinal
- required ↔ bool
-
If this argument is required
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ CommandOptionType
-
The type of arg that will be later changed to an INT value, their values can be seen in the table below:
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 ==(
Object other) → bool -
The equality operator.
inherited