CommandOptionBuilder.number constructor

CommandOptionBuilder.number(
  1. {required String name,
  2. Map<Locale, String>? nameLocalizations,
  3. required String description,
  4. Map<Locale, String>? descriptionLocalizations,
  5. bool? isRequired,
  6. List<CommandOptionChoiceBuilder<double>>? choices,
  7. double? minValue,
  8. double? maxValue,
  9. 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;