CommandOption.string constructor

CommandOption.string(
  1. Display label,
  2. Display description, {
  3. bool? required = false,
})

Implementation

factory CommandOption.string(Display label, Display description, { bool? required = false }) {
  return CommandOption(
    label: label,
    description: description,
    type: OptionType.string,
    required: required
  );
}