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