CommandOptionType enum

The type of a CommandOption.

Inheritance

Constructors

CommandOptionType.parse(int value)
Parse a CommandOptionType from an int.
factory

Values

subCommand → const CommandOptionType
const CommandOptionType._(1)
subCommandGroup → const CommandOptionType
const CommandOptionType._(2)
string → const CommandOptionType
const CommandOptionType._(3)
integer → const CommandOptionType
const CommandOptionType._(4)
boolean → const CommandOptionType
const CommandOptionType._(5)
user → const CommandOptionType
const CommandOptionType._(6)
channel → const CommandOptionType
const CommandOptionType._(7)
role → const CommandOptionType
const CommandOptionType._(8)
mentionable → const CommandOptionType
const CommandOptionType._(9)
number → const CommandOptionType
const CommandOptionType._(10)
attachment → const CommandOptionType
const CommandOptionType._(11)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The value of this CommandOptionType.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<CommandOptionType>
A constant List of the values in this enum, in order of their declaration.