From 8c119caaac88c5d182b88bbbac2b5f3740269106 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 4 Apr 2021 23:35:06 -0500 Subject: [PATCH] =?UTF-8?q?Only=20log=20message.content=20if=20there=20is?= =?UTF-8?q?=20any=20(k=C3=BClboard)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.js b/bot.js index 51d11b3..8f1405d 100644 --- a/bot.js +++ b/bot.js @@ -819,13 +819,15 @@ client.on('messageReactionAdd', (messageReaction, user) => { .addField("Link", `[Click here!](${message.url})`) .setAuthor(message.author.tag, message.author.avatarURL()) .addField(`Max 😎 Reactions`, `${numEmoji}`) - .addField("Message", message.content) .addField("Channel", message.channel) .setThumbnail(message.author.avatarURL()) .setFooter("Message ID: " + message.id) .setColor("00c5ff") .setTimestamp(); + if (message.content) { + kulboardEmbed.addField("Message", message.content) + } collection.findOne({ guild_id: messageReaction.message.guild.id }, (error, result) => { let kulboardChannel; let botLogsChannel;