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
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited