class ChatInputCommandSubcommandGroupBuilder

external
declare class ChatInputCommandSubcommandGroupBuilder extends SharedNameAndDescription implements JSONEncodable<APIApplicationCommandSubcommandGroupOption>

Represents a folder for subcommands.

See also: https://discord.com/developers/docs/interactions/application-commands#subcommands-and-subcommand-groups

readonlyexternal
options : readonly ChatInputCommandSubcommandBuilder[]

Adds a new subcommand to this group.

external
clearDescriptionLocalization(
locale: Locale
) : this

Clears a description localization for this command.

Inherited from: SharedNameAndDescription

external
clearDescriptionLocalizations() : this

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

external
clearNameLocalizations() : this

Clears all name localizations for this command.

Inherited from: SharedName

external
setDescription(
description: string
) : this

Sets the description of this command.

Inherited from: SharedNameAndDescription

external
setDescriptionLocalization(
locale: Locale
localizedDescription: string
) : this

Sets a description localization for this command.

Inherited from: SharedNameAndDescription

external
setDescriptionLocalizations(
localizedDescriptions: Partial<Record<Locale, string>>
) : this

Sets the description localizations for this command.

Inherited from: SharedNameAndDescription

external
setName(
name: string
) : this

Sets the name of this command.

Inherited from: SharedName

external
setNameLocalization(
locale: Locale
localizedName: string
) : this

Sets a name localization for this command.

Inherited from: SharedName

external
setNameLocalizations(
localizedNames: Partial<Record<Locale, string>>
) : this

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.