This commit is contained in:
Dragon Fire
2021-08-02 19:59:05 -04:00
parent 3192f2aa90
commit 71a01a5753
+3 -3
View File
@@ -1,7 +1,7 @@
const { Message, MessagePayload, APIMessage } = require('discord.js');
Reflect.defineProperty(Message.prototype, 'say', { value: function (content, options) {
return this.channel.send({ content, ...options });
return this.channel.send({ content: content || null, ...options });
} });
Reflect.defineProperty(Message.prototype, 'embed', { value: function (embed, options) {
@@ -9,9 +9,9 @@ Reflect.defineProperty(Message.prototype, 'embed', { value: function (embed, opt
} });
Reflect.defineProperty(Message.prototype, 'code', { value: function (lang, content, options) {
return this.channel.send({ content, lang, ...options });
return this.channel.send({ content: content || null, lang, ...options });
} });
Reflect.defineProperty(Message.prototype, 'direct', { value: function (content, options) {
return this.author.send({ content, options });
return this.author.send({ content: content || null, options });
} });