CommandOption.user constructor

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

Implementation

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