CommandOptionBuilder constructor
CommandOptionBuilder(- {required CommandOptionType type,
- required String name,
- Map<Locale, String>? nameLocalizations,
- required String description,
- Map<Locale, String>? descriptionLocalizations,
- bool? isRequired,
- List<CommandOptionChoiceBuilder>? choices,
- List<CommandOptionBuilder>? options,
- List<ChannelType>? channelTypes,
- num? minValue,
- num? maxValue,
- int? minLength,
- int? maxLength,
- 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,
});