CommandOption class Null safety

An argument for a SlashCommand.

Properties

choices List<ArgChoice>
Choices for CommandOptionType.string and CommandOptionType.string types for the user to pick from
late, final
description String
The description of your argument / sub-group.
late, final
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
The name of your argument / sub-group.
late, final
options List<CommandOption>
If the option is a subcommand or subcommand group type, this nested options will be the parameters
late, final
required bool
If this argument is required
late, final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type CommandOptionType
The type of arg that will be later changed to an INT value, their values can be seen in the table below: | Name | Value | |-------------------|-------| | SUB_COMMAND | 1 | | SUB_COMMAND_GROUP | 2 | | STRING | 3 | | INTEGER | 4 | | BOOLEAN | 5 | | USER | 6 | | CHANNEL | 7 | | ROLE | 8 |
late, final

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