blob: 2e9dc7c628778241991432a4d10d1adcfc85b0b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
'use strict';
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;
|