CommandOptionBuilder constructor

CommandOptionBuilder(
  1. CommandOptionType type,
  2. String name,
  3. String description, {
  4. bool defaultArg = false,
  5. bool required = false,
  6. List<ArgChoiceBuilder>? choices,
  7. List<CommandOptionBuilder>? options,
  8. List<ChannelType>? channelTypes,
  9. 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});