CommandOptionBuilder.number constructor
CommandOptionBuilder.number(- {required String name,
- Map<Locale, String>? nameLocalizations,
- required String description,
- Map<Locale, String>? descriptionLocalizations,
- bool? isRequired,
- List<CommandOptionChoiceBuilder<double>>? choices,
- double? minValue,
- double? maxValue,
- bool? hasAutocomplete}
)
Implementation
CommandOptionBuilder.number({
required this.name,
this.nameLocalizations,
required this.description,
this.descriptionLocalizations,
this.isRequired,
List<CommandOptionChoiceBuilder<double>>? this.choices,
double? this.minValue,
double? this.maxValue,
this.hasAutocomplete,
}) : type = CommandOptionType.number,
options = null,
channelTypes = null,
minLength = null,
maxLength = null;