declare class ChatInputCommandSubcommandGroupBuilder extends SharedNameAndDescription implements JSONEncodable<APIApplicationCommandSubcommandGroupOption>Represents a folder for subcommands.
readonlyexternaloptions : readonly ChatInputCommandSubcommandBuilder[]
The options within this subcommand group.
external addSubcommands(...input: RestOrArray<ChatInputCommandSubcommandBuilder | ((subcommandGroup: ChatInputCommandSubcommandBuilder) => ChatInputCommandSubcommandBuilder)>) : this
Adds a new subcommand to this group.
external clearDescriptionLocalization(locale: Locale) : this
Clears a description localization for this command.
Inherited from: SharedNameAndDescription
Clears all description localizations for this command.
Inherited from: SharedNameAndDescription
external clearNameLocalization(locale: Locale) : this
Clears a name localization for this command.
Inherited from: SharedName
Clears all name localizations for this command.
Inherited from: SharedName
external setDescription(description: string) : this
Sets the description of this command.
Inherited from: SharedNameAndDescription
Sets a description localization for this command.
Inherited from: SharedNameAndDescription
Sets the description localizations for this command.
Inherited from: SharedNameAndDescription
Sets a name localization for this command.
Inherited from: SharedName
Sets the name localizations for this command.
Inherited from: SharedName
external toJSON(validationOverride?: boolean) : APIApplicationCommandSubcommandGroupOption
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.