CommandOption.integer constructor

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

Implementation

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