CommandOptionBuilder.integer constructor

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

Implementation

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