class SharedSlashCommand

external
declare class SharedSlashCommand

This mixin holds symbols that can be shared in slashcommands independent of options or subcommands.

readonlyoptionalexternal
contexts? : InteractionContextType[]

readonlyexternal
default_member_permissions : Permissions | null | undefined

deprecatedreadonlyexternal
default_permission : boolean | undefined

readonlyoptionalexternal
description_localizations? : LocalizationMap

readonlyexternal
description : string

deprecatedreadonlyexternal
dm_permission : boolean | undefined

readonlyoptionalexternal
integration_types? : ApplicationIntegrationType[]

readonlyoptionalexternal
name_localizations? : LocalizationMap

readonlyexternal
name : string

readonlyexternal
nsfw : boolean | undefined

readonlyexternal
options : ToAPIApplicationCommandOptions[]

external
setContexts() : this

Sets the contexts of this command.

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

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

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

deprecatedexternal
setDefaultPermission(
value: boolean
) : this

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

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

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

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

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

external
setIntegrationTypes() : this

Sets the integration types of this command.

external
setNSFW(
nsfw?: boolean
) : this

Sets whether this command is NSFW.

Serializes this builder to API-compatible JSON data.