CommandOptionBuilder.string constructor

CommandOptionBuilder.string(
  1. {required String name,
  2. Map<Locale, String>? nameLocalizations,
  3. required String description,
  4. Map<Locale, String>? descriptionLocalizations,
  5. bool? isRequired,
  6. List<CommandOptionChoiceBuilder<String>>? choices,
  7. int? minLength,
  8. int? maxLength,
  9. bool? hasAutocomplete}
)

Implementation

CommandOptionBuilder.string({
  required this.name,
  this.nameLocalizations,
  required this.description,
  this.descriptionLocalizations,
  this.isRequired,
  List<CommandOptionChoiceBuilder<String>>? this.choices,
  this.minLength,
  this.maxLength,
  this.hasAutocomplete,
})  : type = CommandOptionType.string,
      options = null,
      channelTypes = null,
      minValue = null,
      maxValue = null;