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