CommandOption.mentionable constructor

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

Implementation

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