From 34d70bb25bc3305e138442014e9b43fda630062c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 2 Aug 2021 22:51:30 -0400 Subject: [PATCH] Fix --- framework/Extensions.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/Extensions.js b/framework/Extensions.js index 90ea48c5..64cba873 100644 --- a/framework/Extensions.js +++ b/framework/Extensions.js @@ -17,3 +17,8 @@ Reflect.defineProperty(Message.prototype, 'direct', { value: function (content, if (typeof content === 'object') return this.author.send(content); return this.author.send({ content, options }); } }); + +Reflect.defineProperty(Message.prototype, 'reply', { value: function (content, options) { + if (typeof content === 'object') return this.channel.send(content, { reply: { messageReference: this } }); + return this.channel.send({ content, ...options, reply: { messageReference: this } }); +} });