Initial commit
This commit is contained in:
20
src/structures/MessageContextMenuCommandInteraction.js
Normal file
20
src/structures/MessageContextMenuCommandInteraction.js
Normal file
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
const ContextMenuCommandInteraction = require('./ContextMenuCommandInteraction');
|
||||
|
||||
/**
|
||||
* Represents a message context menu interaction.
|
||||
* @extends {ContextMenuCommandInteraction}
|
||||
*/
|
||||
class MessageContextMenuCommandInteraction extends ContextMenuCommandInteraction {
|
||||
/**
|
||||
* The message this interaction was sent from
|
||||
* @type {Message|APIMessage}
|
||||
* @readonly
|
||||
*/
|
||||
get targetMessage() {
|
||||
return this.options.getMessage('message');
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = MessageContextMenuCommandInteraction;
|
Reference in New Issue
Block a user