Optional
Readonly
contextsThe contexts for this command.
Readonly
default_The set of permissions represented as a bit set for the 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
dm_Indicates whether the command is available in direct messages with the application.
Use ContextMenuCommandBuilder.contexts instead.
Optional
Readonly
integration_The integration types for this command.
Readonly
nameThe name of this command.
Optional
Readonly
name_The name localizations of this command.
Readonly
typeThe type of this command.
Sets the contexts of this command.
The contexts
Sets the default permissions a member should have in order to run this command.
The permissions bit field to set
Sets whether the command is enabled by default when the application is added to a guild.
Whether to enable this command by default
Use ContextMenuCommandBuilder.setDefaultMemberPermissions or ContextMenuCommandBuilder.setDMPermission instead.
Sets if the command is available in direct messages with the application.
Whether the command should be enabled in direct messages
Use ContextMenuCommandBuilder.setContexts instead.
Sets integration types of this command.
The integration types
Sets the name of this command.
The name 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
Serializes this builder to API-compatible JSON data.
A builder that creates API-compatible JSON data for context menu commands.