A builder that creates API-compatible JSON data for context menu commands.
default_member_permissions:Permissions_2 | null | undefined
The set of permissions represented as a bit set for the command.
Whether this command is enabled by default when the application is added to a guild.
Indicates whether the command is available in direct messages with the application.
RemarksBy default, commands are visible. This property is only for global commands.
The name localizations of this command.
The type of this command.
Sets the default permissions a member should have in order to run this command.
RemarksYou can set this to
'0'to disable the command by default.
|permissions||Permissions_2 | bigint | number | null | undefined||No||The permissions bit field to set|
Sets whether the command is enabled by default when the application is added to a guild.
RemarksIf set to
false, you will have to later
PUTthe permissions for this command.
|value||boolean||No||Whether to enable this command by default|
Sets if the command is available in direct messages with the application.
RemarksBy default, commands are visible. This method is only for global commands.
|enabled||boolean | null | undefined||No||Whether the command should be enabled in direct messages|
Sets the name of this command.
|name||string||No||The name to use|
Sets a name localization for this command.
|locale||LocaleString||No||The locale to set|
|localizedName||string | null||No||The localized name for the given |
Sets the name localizations for this command.
|localizedNames||LocalizationMap | null||No||The object of localized names to set|
Sets the type of this command.
|type||ContextMenuCommandType||No||The type to use|
Serializes this builder to API-compatible JSON data.