discord.js
Version:
A powerful library for interacting with the Discord API
30 lines (25 loc) • 672 B
JavaScript
;
const ContextMenuCommandInteraction = require('./ContextMenuCommandInteraction');
/**
* Represents a user context menu interaction.
* @extends {ContextMenuCommandInteraction}
*/
class UserContextMenuCommandInteraction extends ContextMenuCommandInteraction {
/**
* The target user from this interaction
* @type {User}
* @readonly
*/
get targetUser() {
return this.options.getUser('user');
}
/**
* The target member from this interaction
* @type {?(GuildMember|APIGuildMember)}
* @readonly
*/
get targetMember() {
return this.options.getMember('user');
}
}
module.exports = UserContextMenuCommandInteraction;