mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com> Co-authored-by: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com> Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com> Co-authored-by: GrapeColor <grapecolor@users.noreply.github.com>
21 lines
481 B
JavaScript
21 lines
481 B
JavaScript
'use strict';
|
|
|
|
const ContextMenuInteraction = require('./ContextMenuInteraction');
|
|
|
|
/**
|
|
* Represents a message context menu interaction.
|
|
* @extends {ContextMenuInteraction}
|
|
*/
|
|
class MessageContextMenuInteraction extends ContextMenuInteraction {
|
|
/**
|
|
* The message this interaction was sent from
|
|
* @type {Message|APIMessage}
|
|
* @readonly
|
|
*/
|
|
get targetMessage() {
|
|
return this.options.getMessage('message');
|
|
}
|
|
}
|
|
|
|
module.exports = MessageContextMenuInteraction;
|