This commit is contained in:
Dragon Fire
2021-08-02 22:51:30 -04:00
parent 892fc315d4
commit 34d70bb25b
+5
View File
@@ -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 } });
} });