class SharedSlashCommand

export declare class SharedSlashCommand

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

readonly
default_member_permissions : Permissions | null | undefined

deprecatedreadonly
default_permission : boolean | undefined

readonlyoptional
description_localizations? : LocalizationMap

readonly
description : string

readonly
dm_permission : boolean | undefined

readonlyoptional
name_localizations? : LocalizationMap

readonly
name : string

readonly
nsfw : boolean | undefined

readonly
options : ToAPIApplicationCommandOptions[]

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

deprecated
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

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

setNSFW(
nsfw?: boolean
) : this

Sets whether this command is NSFW.

Serializes this builder to API-compatible JSON data.