discord.js-selfbot-v13/src/structures/UserContextMenuInteraction.js

30 lines
634 B
JavaScript
Raw Normal View History

2022-03-19 10:37:45 +00:00
'use strict';
const ContextMenuInteraction = require('./ContextMenuInteraction');
2022-03-19 10:37:45 +00:00
/**
* Represents a user context menu interaction.
* @extends {ContextMenuInteraction}
2022-03-19 10:37:45 +00:00
*/
class UserContextMenuInteraction extends ContextMenuInteraction {
2022-03-19 10:37:45 +00:00
/**
* The user this interaction was sent from
* @type {User}
* @readonly
*/
get targetUser() {
return this.options.getUser('user');
}
/**
* The member this interaction was sent from
* @type {?(GuildMember|APIGuildMember)}
* @readonly
*/
get targetMember() {
return this.options.getMember('user');
}
}
module.exports = UserContextMenuInteraction;