CommandOption.channel constructor

CommandOption.channel(
  1. Display label,
  2. Display description, {
  3. List<ChannelType>? channels,
  4. bool? required = false,
})

Implementation

factory CommandOption.channel(Display label, Display description, { List<ChannelType>? channels, bool? required = false }) {
  return CommandOption(
    label: label,
    description: description,
    type: OptionType.channel,
    channels: channels,
    required: required
  );
}