declare class ContextMenuCommandBuilderA builder that creates API-compatible JSON data for context menu commands.
readonlyoptionalexternalcontexts? : InteractionContextType[]
The contexts for this command.
readonlyexternaldefault_member_permissions : Permissions | null | undefined
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.
Use contexts instead.
Indicates whether the command is available in direct messages with the application.
readonlyoptionalexternalintegration_types? : ApplicationIntegrationType[]
The integration types for this command.
readonlyoptionalexternalname_localizations? : LocalizationMap
The name localizations of this command.
readonlyexternalname : string
The name of this command.
readonlyexternaltype : ContextMenuCommandType
The type of this command.
external setContexts(...contexts: RestOrArray<InteractionContextType>) : this
Sets the contexts of this command.
external setDefaultMemberPermissions(permissions: 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
deprecatedexternal setDefaultPermission(value: 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
Use setContexts instead.
Sets if the command is available in direct messages with the application.
See also: https://discord.com/developers/docs/interactions/application-commands#permissions
external setIntegrationTypes(...integrationTypes: RestOrArray<ApplicationIntegrationType>) : this
Sets integration types of this command.
external setName(name: string) : this
Sets the name of this command.
external setNameLocalization(locale: LocaleString) : this
Sets a name localization for this command.
external setNameLocalizations(localizedNames: LocalizationMap | null) : this
Sets the name localizations for this command.
external setType(type: ContextMenuCommandType) : this
Sets the type of this command.
external toJSON() : RESTPostAPIContextMenuApplicationCommandsJSONBody
Serializes this builder to API-compatible JSON data.