interface SlashCommandOptionsOnlyBuilder extends SharedNameAndDescription, SharedSlashCommandOptions<SlashCommandOptionsOnlyBuilder>, SharedSlashCommand

An interface specifically for slash command options.

readonlyoptionalexternal
contexts? : InteractionContextType[]

Inherited from: SharedSlashCommand

readonlyexternal
default_member_permissions : Permissions | null | undefined

Inherited from: SharedSlashCommand

deprecatedreadonlyexternal
default_permission : boolean | undefined

Inherited from: SharedSlashCommand

readonlyoptionalexternal
description_localizations? : LocalizationMap

The description localizations of this command.

Inherited from: SharedNameAndDescription

readonlyexternal
description : string

The description of this command.

Inherited from: SharedNameAndDescription

deprecatedreadonlyexternal
dm_permission : boolean | undefined

Inherited from: SharedSlashCommand

readonlyoptionalexternal
integration_types? : ApplicationIntegrationType[]

Inherited from: SharedSlashCommand

readonlyoptionalexternal
name_localizations? : LocalizationMap

The name localizations of this command.

Inherited from: SharedNameAndDescription

readonlyexternal
name : string

The name of this command.

Inherited from: SharedNameAndDescription

readonlyexternal
nsfw : boolean | undefined

Inherited from: SharedSlashCommand

readonlyexternal
options : ToAPIApplicationCommandOptions[]

Inherited from: SharedSlashCommand

Adds an attachment option.

Inherited from: SharedSlashCommandOptions

Adds a boolean option.

Inherited from: SharedSlashCommandOptions

Adds a channel option.

Inherited from: SharedSlashCommandOptions

Adds an integer option.

Inherited from: SharedSlashCommandOptions

Adds a mentionable option.

Inherited from: SharedSlashCommandOptions

Adds a number option.

Inherited from: SharedSlashCommandOptions

Adds a role option.

Inherited from: SharedSlashCommandOptions

Adds a string option.

Inherited from: SharedSlashCommandOptions

Adds a user option.

Inherited from: SharedSlashCommandOptions

external
setContexts() : 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

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
localizedDescription: string | null
) : 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

deprecatedexternal
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

external
setIntegrationTypes() : 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
localizedName: string | null
) : 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

Serializes this builder to API-compatible JSON data.

Inherited from: SharedSlashCommand