Readonly
nameOptional
Readonly
name_The name localizations of this command.
Readonly
descriptionThe description of this command.
Optional
Readonly
description_The description localizations of this command.
Readonly
typeThe type of this command.
Optional
Readonly
contextsThe contexts for this command.
Readonly
default_Whether this command is enabled by default when the application is added to a guild.
Use ContextMenuCommandBuilder.setDefaultMemberPermissions or ContextMenuCommandBuilder.setDMPermission instead.
Readonly
default_The set of permissions represented as a bit set for the command.
Readonly
dm_Indicates whether the command is available in direct messages with the application.
By default, commands are visible. This property is only for global commands.
Use ContextMenuCommandBuilder.contexts instead.
Optional
Readonly
integration_The integration types for this command.
Sets the name of this command.
The name to use
Sets the description of this command.
The description to use
Sets a name localization for this command.
The locale to set
The localized name for the given locale
Sets the name localizations for this command.
The object of localized names to set
Sets a description localization for this command.
The locale to set
The localized description for the given locale
Sets the description localizations for this command.
The object of localized descriptions to set
Sets the contexts of this command.
Rest
...contexts: RestOrArray<InteractionContextType>The contexts
Sets integration types of this command.
Rest
...integrationTypes: RestOrArray<ApplicationIntegrationType>The integration types
Sets the type of this command.
The type to use
Sets whether the command is enabled by default when the application is added to a guild.
Whether to enable this command by default
If set to false
, you will have to later PUT
the permissions for this command.
https://discord.com/developers/docs/interactions/application-commands#permissions
Use ContextMenuCommandBuilder.setDefaultMemberPermissions or ContextMenuCommandBuilder.setDMPermission instead.
Sets the default permissions a member should have in order to run this command.
The permissions bit field to set
You can set this to '0'
to disable the command by default.
https://discord.com/developers/docs/interactions/application-commands#permissions
Sets if the command is available in direct messages with the application.
Whether the command should be enabled in direct messages
By default, commands are visible. This method is only for global commands.
https://discord.com/developers/docs/interactions/application-commands#permissions
Use ContextMenuCommandBuilder.setContexts instead.
Generated using TypeDoc
The name of this command.