CommandOptionBuilder.subCommand constructor

CommandOptionBuilder.subCommand(
  1. {required String name,
  2. Map<Locale, String>? nameLocalizations,
  3. required String description,
  4. Map<Locale, String>? descriptionLocalizations,
  5. required List<CommandOptionBuilder> options}
)

Implementation

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