mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
feat: add UserContextMenuInteraction and MessageContextMenuInteraction (#7003)
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>
This commit is contained in:
20
src/structures/MessageContextMenuInteraction.js
Normal file
20
src/structures/MessageContextMenuInteraction.js
Normal file
@@ -0,0 +1,20 @@
|
||||
'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;
|
||||
Reference in New Issue
Block a user