Optional ReadonlycontextsThe contexts for this command.
Readonlydefault_The set of permissions represented as a bit set for the command.
Readonlydefault_Whether this command is enabled by default when the application is added to a guild.
Use ContextMenuCommandBuilder.setDefaultMemberPermissions or ContextMenuCommandBuilder.setDMPermission instead.
Readonlydm_Indicates whether the command is available in direct messages with the application.
Use ContextMenuCommandBuilder.contexts instead.
Optional Readonlyintegration_The integration types for this command.
ReadonlynameThe name of this command.
Optional Readonlyname_The name localizations of this command.
ReadonlytypeThe 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.