2022-03-19 10:37:45 +00:00
|
|
|
'use strict';
|
|
|
|
|
2022-03-24 10:55:32 +00:00
|
|
|
const ContextMenuInteraction = require('./ContextMenuInteraction');
|
2022-03-19 10:37:45 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Represents a user context menu interaction.
|
2022-03-24 10:55:32 +00:00
|
|
|
* @extends {ContextMenuInteraction}
|
2022-03-19 10:37:45 +00:00
|
|
|
*/
|
2022-03-24 10:55:32 +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');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-24 10:55:32 +00:00
|
|
|
module.exports = UserContextMenuInteraction;
|