CommandOptionBuilder constructor
CommandOptionBuilder(
- CommandOptionType type,
- String name,
- String description, {
- bool defaultArg = false,
- bool required = false,
- List<
ArgChoiceBuilder> ? choices, - List<
CommandOptionBuilder> ? options, - List<
ChannelType> ? channelTypes, - bool autoComplete = false,
- num? min,
- num? max,
- Map<
Locale, String> ? localizationsName, - Map<
Locale, String> ? localizationsDescription,
Used to create an argument for a SlashCommandBuilder.
Implementation
CommandOptionBuilder(
this.type,
this.name,
this.description, {
this.defaultArg = false,
this.required = false,
this.choices,
this.options,
this.channelTypes,
this.autoComplete = false,
this.min,
this.max,
this.localizationsName,
this.localizationsDescription,
});