Option class

Constructors

Option({required String name, required String description, required OptionType type, bool? required, List<ChannelType>? channels, int? min, int? max, List<OptionChoice>? choices})
Option.bool(String name, String description, {bool? required = false})
factory
Option.channel(String name, String description, {List<ChannelType>? channels, bool? required = false})
factory
Option.choice(String name, String description, OptionType type, List<OptionChoice> choices, {bool? required = false})
factory
Option.mentionable(String name, String description, {bool? required = false})
factory
Option.number(String name, String description, {bool? required = false})
factory
Option.role(String name, String description, {bool? required = false})
factory
Option.string(String name, String description, {bool? required = false})
factory
Option.user(String name, String description, {bool? required = false})
factory

Properties

channels List<ChannelType>?
final
choices List<OptionChoice>?
final
description String
final
hashCode int
The hash code for this object.
no setterinherited
max int?
final
min int?
final
name String
final
required bool?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toJson Object
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