interface SlashCommandOptionsOnlyBuilder
extends
SharedNameAndDescriptionSharedSlashCommandOptions<SlashCommandOptionsOnlyBuilder>SharedSlashCommandinterface SlashCommandOptionsOnlyBuilder extends SharedNameAndDescription, SharedSlashCommandOptions<SlashCommandOptionsOnlyBuilder>, SharedSlashCommand
An interface specifically for slash command options.
readonlyoptionalexternalInteractionContextType[] contexts? :
Inherited from: SharedSlashCommand
readonlyexternalPermissions | null | undefined default_member_permissions :
Inherited from: SharedSlashCommand
Use setDefaultMemberPermissions or setDMPermission instead.
Inherited from: SharedSlashCommand
readonlyoptionalexternalLocalizationMap description_localizations? :
The description localizations of this command.
Inherited from: SharedNameAndDescription
readonlyexternalstring description :
The description of this command.
Inherited from: SharedNameAndDescription
Use contexts instead.
Inherited from: SharedSlashCommand
readonlyoptionalexternalApplicationIntegrationType[] integration_types? :
Inherited from: SharedSlashCommand
readonlyoptionalexternalLocalizationMap name_localizations? :
The name localizations of this command.
Inherited from: SharedNameAndDescription
Inherited from: SharedSlashCommand
readonlyexternalToAPIApplicationCommandOptions[] options :
Inherited from: SharedSlashCommand
external addAttachmentOptioninput: SlashCommandAttachmentOption | ((builder: SlashCommandAttachmentOption) => SlashCommandAttachmentOption)) : TypeAfterAddingOptions (
Adds an attachment option.
Inherited from: SharedSlashCommandOptions
external addBooleanOptioninput: SlashCommandBooleanOption | ((builder: SlashCommandBooleanOption) => SlashCommandBooleanOption)) : TypeAfterAddingOptions (
Adds a boolean option.
Inherited from: SharedSlashCommandOptions
external addChannelOptioninput: SlashCommandChannelOption | ((builder: SlashCommandChannelOption) => SlashCommandChannelOption)) : TypeAfterAddingOptions (
Adds a channel option.
Inherited from: SharedSlashCommandOptions
external addIntegerOptioninput: SlashCommandIntegerOption | ((builder: SlashCommandIntegerOption) => SlashCommandIntegerOption)) : TypeAfterAddingOptions (
Adds an integer option.
Inherited from: SharedSlashCommandOptions
external addMentionableOptioninput: SlashCommandMentionableOption | ((builder: SlashCommandMentionableOption) => SlashCommandMentionableOption)) : TypeAfterAddingOptions (
Adds a mentionable option.
Inherited from: SharedSlashCommandOptions
external addNumberOptioninput: SlashCommandNumberOption | ((builder: SlashCommandNumberOption) => SlashCommandNumberOption)) : TypeAfterAddingOptions (
Adds a number option.
Inherited from: SharedSlashCommandOptions
external addRoleOptioninput: SlashCommandRoleOption | ((builder: SlashCommandRoleOption) => SlashCommandRoleOption)) : TypeAfterAddingOptions (
Adds a role option.
Inherited from: SharedSlashCommandOptions
external addStringOptioninput: SlashCommandStringOption | ((builder: SlashCommandStringOption) => SlashCommandStringOption)) : TypeAfterAddingOptions (
Adds a string option.
Inherited from: SharedSlashCommandOptions
external addUserOptioninput: SlashCommandUserOption | ((builder: SlashCommandUserOption) => SlashCommandUserOption)) : TypeAfterAddingOptions (
Adds a user option.
Inherited from: SharedSlashCommandOptions
external setContexts...contexts: RestOrArray<InteractionContextType>) : this (
Sets the contexts of this command.
Inherited from: SharedSlashCommand
external 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
deprecatedexternal 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
external setDescriptiondescription: string) : this (
Sets the description of this command.
Inherited from: SharedNameAndDescription
external setDescriptionLocalizationlocale: LocaleString) : this (
Sets a description localization for this command.
Inherited from: SharedNameAndDescription
external setDescriptionLocalizationslocalizedDescriptions: 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 setNamename: string) : this (
Sets the name of this command.
Inherited from: SharedNameAndDescription
external setNameLocalizationlocale: LocaleString) : this (
Sets a name localization for this command.
Inherited from: SharedNameAndDescription
external setNameLocalizationslocalizedNames: LocalizationMap | null) : this (
Sets the name localizations for this command.
Inherited from: SharedNameAndDescription
external setNSFWnsfw?: boolean) : this (
Sets whether this command is NSFW.
Inherited from: SharedSlashCommand
external toJSONRESTPostAPIChatInputApplicationCommandsJSONBody () :
Serializes this builder to API-compatible JSON data.
Inherited from: SharedSlashCommand