CommandOptionBuilder.string constructor
CommandOptionBuilder.string(- {required String name,
- Map<Locale, String>? nameLocalizations,
- required String description,
- Map<Locale, String>? descriptionLocalizations,
- bool? isRequired,
- List<CommandOptionChoiceBuilder<String>>? choices,
- int? minLength,
- int? maxLength,
- 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;