interface SlashCommandSubcommandsOnlyBuilder
extends
SharedNameAndDescriptionSharedSlashCommandSubcommands<SlashCommandSubcommandsOnlyBuilder>SharedSlashCommandinterface SlashCommandSubcommandsOnlyBuilder extends SharedNameAndDescription, SharedSlashCommandSubcommands<SlashCommandSubcommandsOnlyBuilder>, SharedSlashCommandAn interface specifically for slash command subcommands.
readonlyoptionalexternalcontexts? : InteractionContextType[]
Inherited from: SharedSlashCommand
readonlyexternaldefault_member_permissions : Permissions | null | undefined
Inherited from: SharedSlashCommand
Use setDefaultMemberPermissions or setDMPermission instead.
Inherited from: SharedSlashCommand
readonlyoptionalexternaldescription_localizations? : LocalizationMap
The description localizations of this command.
Inherited from: SharedNameAndDescription
readonlyexternaldescription : string
The description of this command.
Inherited from: SharedNameAndDescription
Use contexts instead.
Inherited from: SharedSlashCommand
readonlyoptionalexternalintegration_types? : ApplicationIntegrationType[]
Inherited from: SharedSlashCommand
readonlyoptionalexternalname_localizations? : LocalizationMap
The name localizations of this command.
Inherited from: SharedNameAndDescription
Inherited from: SharedSlashCommand
readonlyexternaloptions : ToAPIApplicationCommandOptions[]
Inherited from: SharedSlashCommand
external addSubcommand(input: SlashCommandSubcommandBuilder | ((subcommandGroup: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder)) : TypeAfterAddingSubcommands
Adds a new subcommand to this command.
Inherited from: SharedSlashCommandSubcommands
external addSubcommandGroup(input: SlashCommandSubcommandGroupBuilder | ((subcommandGroup: SlashCommandSubcommandGroupBuilder) => SlashCommandSubcommandGroupBuilder)) : TypeAfterAddingSubcommands
Adds a new subcommand group to this command.
Inherited from: SharedSlashCommandSubcommands
external setContexts(...contexts: RestOrArray<InteractionContextType>) : this
Sets the contexts of this command.
Inherited from: SharedSlashCommand
external 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
deprecatedexternal setDefaultPermission(value: 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
external setDescription(description: string) : this
Sets the description of this command.
Inherited from: SharedNameAndDescription
external setDescriptionLocalization(locale: LocaleString) : this
Sets a description localization for this command.
Inherited from: SharedNameAndDescription
external setDescriptionLocalizations(localizedDescriptions: LocalizationMap | null) : this
Sets the description localizations for this command.
Inherited from: SharedNameAndDescription
Use setContexts instead.
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
external setIntegrationTypes(...integrationTypes: RestOrArray<ApplicationIntegrationType>) : this
Sets the integration types of this command.
Inherited from: SharedSlashCommand
external setName(name: string) : this
Sets the name of this command.
Inherited from: SharedNameAndDescription
external setNameLocalization(locale: LocaleString) : this
Sets a name localization for this command.
Inherited from: SharedNameAndDescription
external setNameLocalizations(localizedNames: LocalizationMap | null) : this
Sets the name localizations for this command.
Inherited from: SharedNameAndDescription
external setNSFW(nsfw?: boolean) : this
Sets whether this command is NSFW.
Inherited from: SharedSlashCommand
external toJSON() : RESTPostAPIChatInputApplicationCommandsJSONBody
Serializes this builder to API-compatible JSON data.
Inherited from: SharedSlashCommand