CommandOption.choice constructor

CommandOption.choice(
  1. Display label,
  2. Display description,
  3. List<OptionChoice> choices, {
  4. bool? required = false,
})

Implementation

factory CommandOption.choice(Display label, Display description, List<OptionChoice> choices, { bool? required = false }) {
  return CommandOption(
    label: label,
    description: description,
    type: OptionType.string,
    choices: choices,
    required: required
  );
}