CommandOption.choice constructor
CommandOption.choice(
- Display label,
- Display description,
- List<
OptionChoice> choices, { - 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
);
}