export interface SlashCommandSubcommandsOnlyBuilder extends SharedNameAndDescription, SharedSlashCommandSubcommands<SlashCommandSubcommandsOnlyBuilder>, SharedSlashCommand
An interface specifically for slash command subcommands.
readonlyoptionalLocalizationMap description_localizations? :
The description localizations of this command.
Inherited from: SharedNameAndDescription
readonlystring description :
The description of this command.
Inherited from: SharedNameAndDescription
readonlyoptionalLocalizationMap name_localizations? :
The name localizations of this command.
Inherited from: SharedNameAndDescription
readonlyToAPIApplicationCommandOptions[] options :
Inherited from: SharedSlashCommand
addSubcommandinput: SlashCommandSubcommandBuilder | ((subcommandGroup: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder)) : TypeAfterAddingSubcommands (
Adds a new subcommand to this command.
Inherited from: SharedSlashCommandSubcommands
addSubcommandGroupinput: SlashCommandSubcommandGroupBuilder | ((subcommandGroup: SlashCommandSubcommandGroupBuilder) => SlashCommandSubcommandGroupBuilder)) : TypeAfterAddingSubcommands (
Adds a new subcommand group to this command.
Inherited from: SharedSlashCommandSubcommands
setDefaultMemberPermissionspermissions: 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 setDefaultPermissionvalue: boolean) : this (
Use setDefaultMemberPermissions or setDMPermission instead.
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
setDescriptiondescription: string) : this (
Sets the description of this command.
Inherited from: SharedNameAndDescription
setDescriptionLocalizationlocale: LocaleString) : this (
Sets a description localization for this command.
Inherited from: SharedNameAndDescription
setDescriptionLocalizationslocalizedDescriptions: LocalizationMap | null) : this (
Sets the description localizations for this command.
Inherited from: SharedNameAndDescription
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
setNameLocalizationlocale: LocaleString) : this (
Sets a name localization for this command.
Inherited from: SharedNameAndDescription
setNameLocalizationslocalizedNames: LocalizationMap | null) : this (
Sets the name localizations for this command.
Inherited from: SharedNameAndDescription
Serializes this builder to API-compatible JSON data.
Inherited from: SharedSlashCommand