CommandOptionType class

The type that a user should input for a CommandOptionBuilder

Constructors

CommandOptionType(int value)
Create new instance of CommandArgType
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
Returns value of enum
no setterinherited

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

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