Option<T> class
final
- Implemented types
Constructors
- Option.attachment({required String name, required String description, bool required = false})
-
factory
- Option.boolean({required String name, required String description, bool required = false})
-
factory
-
Option.channel({required String name, required String description, List<
ChannelType> channels = const [], bool required = false}) -
factory
- Option.double({required String name, required String description, bool required = false})
-
factory
- Option.integer({required String name, required String description, bool required = false})
-
factory
- Option.mentionable({required String name, required String description, bool required = false})
-
factory
- Option.role({required String name, required String description, bool required = false})
-
factory
- Option.string({required String name, required String description, bool required = false})
-
factory
- Option.user({required String name, required String description, bool required = false})
-
factory
Properties
-
channelTypes
→ List<
ChannelType> ? -
final
- description → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRequired → bool
-
final
- name → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → CommandOptionType
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited