CommandOptionBuilder constructor

CommandOptionBuilder(
  1. {required CommandOptionType type,
  2. required String name,
  3. Map<Locale, String>? nameLocalizations,
  4. required String description,
  5. Map<Locale, String>? descriptionLocalizations,
  6. bool? isRequired,
  7. List<CommandOptionChoiceBuilder>? choices,
  8. List<CommandOptionBuilder>? options,
  9. List<ChannelType>? channelTypes,
  10. num? minValue,
  11. num? maxValue,
  12. int? minLength,
  13. int? maxLength,
  14. bool? hasAutocomplete}
)

Implementation

CommandOptionBuilder({
  required this.type,
  required this.name,
  this.nameLocalizations,
  required this.description,
  this.descriptionLocalizations,
  this.isRequired,
  this.choices,
  this.options,
  this.channelTypes,
  this.minValue,
  this.maxValue,
  this.minLength,
  this.maxLength,
  this.hasAutocomplete,
});