CommandOption class

Constructors

CommandOption({required Display label, required Display description, required OptionType type, bool? required, List<ChannelType>? channels, int? min, int? max, List<OptionChoice>? choices})
CommandOption.attachement(Display label, Display description, {bool? required = false})
factory
CommandOption.bool(Display label, Display description, {bool? required = false})
factory
CommandOption.channel(Display label, Display description, {List<ChannelType>? channels, bool? required = false})
factory
CommandOption.choice(Display label, Display description, List<OptionChoice> choices, {bool? required = false})
factory
CommandOption.double(Display label, Display description, {bool? required = false})
factory
CommandOption.integer(Display label, Display description, {bool? required = false})
factory
CommandOption.mentionable(Display label, Display description, {bool? required = false})
factory
CommandOption.role(Display label, Display description, {bool? required = false})
factory
CommandOption.string(Display label, Display description, {bool? required = false})
factory
CommandOption.user(Display label, Display description, {bool? required = false})
factory

Properties

channels List<ChannelType>?
final
choices List<OptionChoice>?
final
description Display
final
hashCode int
The hash code for this object.
no setterinherited
label Display
final
max int?
final
min int?
final
required bool?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serialize Map<String, dynamic>
no setter
type → OptionType
final

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