CommandOptionBuilder.channel constructor

CommandOptionBuilder.channel(
  1. {required String name,
  2. Map<Locale, String>? nameLocalizations,
  3. required String description,
  4. Map<Locale, String>? descriptionLocalizations,
  5. bool? isRequired,
  6. List<ChannelType>? channelTypes}
)

Implementation

CommandOptionBuilder.channel({
  required this.name,
  this.nameLocalizations,
  required this.description,
  this.descriptionLocalizations,
  this.isRequired,
  this.channelTypes,
})  : type = CommandOptionType.channel,
      choices = null,
      options = null,
      minValue = null,
      maxValue = null,
      minLength = null,
      maxLength = null,
      hasAutocomplete = null;