CommandOptionBuilder.role constructor

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

Implementation

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