Search...

SlashCommandSubcommandGroupBuilder

export declare class SlashCommandSubcommandGroupBuilder implements ToAPIApplicationCommandOptions 
export declare class SlashCommandSubcommandGroupBuilder implements ToAPIApplicationCommandOptions 
Represents a folder for subcommandsFor more information, go to https://discord.com/developers/docs/interactions/application-commands#subcommands-and-subcommand-groups
Readonly

description

:

string

The description of this subcommand group
Readonly

name

:

string

The name of this subcommand group
The subcommands part of this subcommand group
Readonly
Optional

description_localizations?

:

LocalizationMap

Readonly
Optional

name_localizations?

:

LocalizationMap

addSubcommand(input)

:

this

Adds a new subcommand to this group
NameTypeOptionalDescription
inputSlashCommandSubcommandBuilder | ((subcommandGroup: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder)NoA function that returns a subcommand builder, or an already built builder

toJSON()

:

APIApplicationCommandSubcommandGroupOption

setDescription(description)

:

this

Sets the description
NameTypeOptionalDescription
descriptionstringNoThe description
Inherited from SharedNameAndDescription

setDescriptionLocalization(locale, localizedDescription)

:

this

Sets a description localization
NameTypeOptionalDescription
localeLocaleStringNoThe locale to set a description for
localizedDescriptionstring | nullNoThe localized description for the given locale
Inherited from SharedNameAndDescription

setDescriptionLocalizations(localizedDescriptions)

:

this

Sets the description localizations
NameTypeOptionalDescription
localizedDescriptionsLocalizationMap | nullNoThe dictionary of localized descriptions to set
Inherited from SharedNameAndDescription

setName(name)

:

this

Sets the name
NameTypeOptionalDescription
namestringNoThe name
Inherited from SharedNameAndDescription

setNameLocalization(locale, localizedName)

:

this

Sets a name localization
NameTypeOptionalDescription
localeLocaleStringNoThe locale to set a description for
localizedNamestring | nullNoThe localized description for the given locale
Inherited from SharedNameAndDescription

setNameLocalizations(localizedNames)

:

this

Sets the name localizations
NameTypeOptionalDescription
localizedNamesLocalizationMap | nullNoThe dictionary of localized descriptions to set
Inherited from SharedNameAndDescription