Downgrade to v13
[vi] cảm giác đau khổ
This commit is contained in:
29
src/structures/UserContextMenuInteraction.js
Normal file
29
src/structures/UserContextMenuInteraction.js
Normal file
@@ -0,0 +1,29 @@
|
||||
'use strict';
|
||||
|
||||
const ContextMenuInteraction = require('./ContextMenuInteraction');
|
||||
|
||||
/**
|
||||
* Represents a user context menu interaction.
|
||||
* @extends {ContextMenuInteraction}
|
||||
*/
|
||||
class UserContextMenuInteraction extends ContextMenuInteraction {
|
||||
/**
|
||||
* 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;
|
||||
Reference in New Issue
Block a user