Option<T>.channel constructor

Option<T>.channel({
  1. required String name,
  2. required String description,
  3. List<ChannelType> channels = const [],
  4. bool required = false,
})

Implementation

factory Option.channel(
        {required String name,
        required String description,
        List<ChannelType> channels = const [],
        bool required = false}) =>
    Option._(
        name, description, CommandOptionType.channel, channels, required);