export interface SlashCommandSubcommandsOnlyBuilder extends SharedNameAndDescription, SharedSlashCommandSubcommands<SlashCommandSubcommandsOnlyBuilder>, SharedSlashCommand

An interface specifically for slash command subcommands.

readonlyoptional
description_localizations? : LocalizationMap

The description localizations of this command.

Inherited from: SharedNameAndDescription

readonly
description : string

The description of this command.

Inherited from: SharedNameAndDescription

readonlyoptional
name_localizations? : LocalizationMap

The name localizations of this command.

Inherited from: SharedNameAndDescription

readonly
name : string

The name of this command.

Inherited from: SharedNameAndDescription

readonly
options : ToAPIApplicationCommandOptions[]

Inherited from: SharedSlashCommand

addSubcommand() : TypeAfterAddingSubcommands

Adds a new subcommand to this command.

Inherited from: SharedSlashCommandSubcommands

addSubcommandGroup() : TypeAfterAddingSubcommands

Adds a new subcommand group to this command.

Inherited from: SharedSlashCommandSubcommands

setDefaultMemberPermissions(
permissions: Permissions | bigint | number | null | undefined
) : this

Sets the default permissions a member should have in order to run the command.

Inherited from: SharedSlashCommand

See also: https://discord.com/developers/docs/interactions/application-commands#permissions

deprecated
setDefaultPermission(
value: boolean
) : this

Sets whether the command is enabled by default when the application is added to a guild.

Inherited from: SharedSlashCommand

See also: https://discord.com/developers/docs/interactions/application-commands#permissions

setDescription(
description: string
) : this

Sets the description of this command.

Inherited from: SharedNameAndDescription

setDescriptionLocalization(
locale: LocaleString
localizedDescription: string | null
) : this

Sets a description localization for this command.

Inherited from: SharedNameAndDescription

setDescriptionLocalizations(
localizedDescriptions: LocalizationMap | null
) : this

Sets the description localizations for this command.

Inherited from: SharedNameAndDescription

setDMPermission(
enabled: boolean | null | undefined
) : this

Sets if the command is available in direct messages with the application.

Inherited from: SharedSlashCommand

See also: https://discord.com/developers/docs/interactions/application-commands#permissions

setName(
name: string
) : this

Sets the name of this command.

Inherited from: SharedNameAndDescription

setNameLocalization(
locale: LocaleString
localizedName: string | null
) : this

Sets a name localization for this command.

Inherited from: SharedNameAndDescription

setNameLocalizations(
localizedNames: LocalizationMap | null
) : this

Sets the name localizations for this command.

Inherited from: SharedNameAndDescription

setNSFW(
nsfw?: boolean
) : this

Sets whether this command is NSFW.

Inherited from: SharedSlashCommand

Serializes this builder to API-compatible JSON data.

Inherited from: SharedSlashCommand