From 71a01a5753535920f55c3cd413d1e699d0333a56 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 2 Aug 2021 19:59:05 -0400 Subject: [PATCH] Fix --- framework/Extensions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/Extensions.js b/framework/Extensions.js index da293785..5de092d2 100644 --- a/framework/Extensions.js +++ b/framework/Extensions.js @@ -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 }); } });