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-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value int
Returns value of enum
read-onlyinherited

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 ==(dynamic other) bool
The equality operator.
inherited

Constants

attachment → const CommandOptionType
Specify an arg as an attachment
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
mentionable → const CommandOptionType
Specify an arg as a mentionable user or role
number → const CommandOptionType
Specify an arg as a double
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