UserContextMenuCommandInteraction
interactionOn this page
UserContextMenuCommandInteraction is a DiscordLua interaction representing a Discord resource. Obtain it from a manager, an event payload, or the constructor when one is documented below.
Methods
UserContextMenuCommandInteraction:targetMember()
#Performs target member on this UserContextMenuCommandInteraction. Call it from bot code when you need that operation on the current object.
Signature
UserContextMenuCommandInteraction:targetMember() Parameters
No parameters.
Returns
any.
Example
local discord = require("discord")
-- object is a UserContextMenuCommandInteraction
object:targetMember()UserContextMenuCommandInteraction:targetUser()
#Performs target user on this UserContextMenuCommandInteraction. Call it from bot code when you need that operation on the current object.
Signature
UserContextMenuCommandInteraction:targetUser() Parameters
No parameters.
Returns
any.
Example
local discord = require("discord")
-- object is a UserContextMenuCommandInteraction
object:targetUser()Examples
Obtain this object from a manager, wrap helper, or event payload — it is not constructed directly in typical bot code.
Related APIs
AutocompleteInteraction · ButtonInteraction · ChannelSelectMenuInteraction · ChatInputCommandInteraction · ContextMenuCommandInteraction · Interaction · MentionableSelectMenuInteraction · MessageComponentInteraction
Version: discord 1.2.4 · runtime 1.0.0