From e4450c8417624b71d779cb4f41692538f9165e10 Mon Sep 17 00:00:00 2001 From: sowgro Date: Sat, 2 Sep 2023 19:12:47 -0400 Subject: first commit --- .../MessageContextMenuCommandInteraction.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 node_modules/discord.js/src/structures/MessageContextMenuCommandInteraction.js (limited to 'node_modules/discord.js/src/structures/MessageContextMenuCommandInteraction.js') diff --git a/node_modules/discord.js/src/structures/MessageContextMenuCommandInteraction.js b/node_modules/discord.js/src/structures/MessageContextMenuCommandInteraction.js new file mode 100644 index 0000000..1100591 --- /dev/null +++ b/node_modules/discord.js/src/structures/MessageContextMenuCommandInteraction.js @@ -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; -- cgit v1.2.3