Skip to content

ContextMenuInteraction

ContextMenuInteraction ⇐ ApplicationCommandInteraction

Represents a context menu interaction, extending the base ApplicationCommandInteraction class.

Kind: global class
Extends: ApplicationCommandInteraction
Properties

NameTypeDescription
targetIdstring | nullThe ID of the target of the interaction, if available.
resolvedObject | nullThe resolved data of the interaction, if available.

new ContextMenuInteraction([data], guildId, client)

Constructs a new instance of the class.

ParamTypeDescription
[data]ObjectThe data object containing information about the interaction.
guildIdstringThe ID of the guild where the interaction occurred.
clientClientThe client instance associated with the interaction.