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 = false,
  10. num? min,
  11. num? max,
  12. Map<Locale, String>? localizationsName,
  13. 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,
});