This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { APIMessage, Structures } = require("discord.js"); | |
class Message extends Structures.get("Message") { | |
async inlineReply(content, options) { | |
const mentionRepliedUser = typeof ((options || content || {}).allowedMentions || {}).repliedUser === "undefined" ? true : ((options || content).allowedMentions).repliedUser; | |
delete ((options || content || {}).allowedMentions || {}).repliedUser; | |
const apiMessage = content instanceof APIMessage ? content.resolveData() : APIMessage.create(this.channel, content, options).resolveData(); | |
Object.assign(apiMessage.data, { message_reference: { message_id: this.id } }); | |