CommandOptionType class Null safety

The type that a user should input for a CommandOptionBuilder

Inheritance

Constructors

CommandOptionType(int value)
Create new instance of CommandArgType
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value int
Returns value of enum
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

Constants

boolean → const CommandOptionType
Specify an arg as a bool
channel → const CommandOptionType
Specify an arg as a channel e.g. #Help
integer → const CommandOptionType
Specify an arg as an int
role → const CommandOptionType
Specify an arg as a role e.g. @RoleName
string → const CommandOptionType
Specify an arg as a string
subCommand → const CommandOptionType
Specify an arg as a sub command
subCommandGroup → const CommandOptionType
Specify an arg as a sub command group
user → const CommandOptionType
Specify an arg as a user e.g @HarryET#2954