export declare class ContextMenuCommandBuilder
A builder that creates API-compatible JSON data for context menu commands.
readonlyPermissions | null | undefined default_member_permissions :
The set of permissions represented as a bit set for the command.
Use setDefaultMemberPermissions or setDMPermission instead.
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.
readonlyoptionalLocalizationMap name_localizations? :
The name localizations of this command.
readonlystring name :
The name of this command.
readonlyContextMenuCommandType type :
The type of this command.
setDefaultMemberPermissionspermissions: Permissions | bigint | number | null | undefined) : this (
Sets the default permissions a member should have in order to run this command.
See also: https://discord.com/developers/docs/interactions/application-commands#permissions
deprecated setDefaultPermissionvalue: boolean) : this (
Use setDefaultMemberPermissions or setDMPermission instead.
Sets whether the command is enabled by default when the application is added to a guild.
See also: https://discord.com/developers/docs/interactions/application-commands#permissions
Sets if the command is available in direct messages with the application.
See also: https://discord.com/developers/docs/interactions/application-commands#permissions
setNamename: string) : this (
Sets the name of this command.
setNameLocalizationlocale: LocaleString) : this (
Sets a name localization for this command.
setNameLocalizationslocalizedNames: LocalizationMap | null) : this (
Sets the name localizations for this command.
setTypetype: ContextMenuCommandType) : this (
Sets the type of this command.
Serializes this builder to API-compatible JSON data.