export declare class ContextMenuCommandBuilder
readonlyPermissions | null | undefined default_member_permissions :
Set of permissions represented as a bit set for the command
This property is deprecated and will be removed in the future. You should use setDefaultMemberPermissions or setDMPermission instead.
Whether the command is enabled by default when the app is added to a guild
Indicates whether the command is available in DMs with the application, only for globally-scoped commands. By default, commands are visible.
readonlyoptionalLocalizationMap name_localizations? :
The localized names for this command
readonlystring name :
The name of this context menu command
readonlyContextMenuCommandType type :
The type of this context menu command
setDefaultMemberPermissionspermissions: Permissions | bigint | number | null | undefined) : this (
Sets the default permissions a member should have in order to run the 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 DMs with the application, only for globally-scoped commands. By default, commands are visible.
See also: https://discord.com/developers/docs/interactions/application-commands#permissions
setNamename: string) : this (
Sets the name
setNameLocalizationlocale: LocaleStringlocalizedName: string | null) : this (
Sets a name localization
setNameLocalizationslocalizedNames: LocalizationMap | null) : this (
Sets the name localizations
setTypetype: ContextMenuCommandType) : this (
Sets the type
Returns the final data that should be sent to Discord.