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,
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});