ChoiceOption.integer constructor

ChoiceOption.integer({
  1. required String name,
  2. required String description,
  3. required List<Choice<int>> choices,
  4. bool required = false,
})

Implementation

factory ChoiceOption.integer(
        {required String name,
        required String description,
        required List<Choice<int>> choices,
        bool required = false}) =>
    ChoiceOption._(name, description, CommandOptionType.integer, required,
        null, choices);