From e372ff2d6adf498653cb2b481f33f44b32c0af2a Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 4 Apr 2021 23:32:40 -0500 Subject: [PATCH] Only log message.content if there is any --- bot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot.js b/bot.js index 4a91065..d884c04 100644 --- a/bot.js +++ b/bot.js @@ -804,13 +804,16 @@ client.on('messageReactionAdd', (messageReaction, user) => { .setTitle("Reaction Added") .setAuthor(message.author.tag, message.author.avatarURL()) .addField("Link", `[Click here!](${message.url})`) - .addField("Message", message.content) .addField("Reactions", `\`${user.tag}\` reacted with \`${emoji}\`, along with ${numEmoji - 1} other people in ${messageReaction.message.channel}.`) .setFooter("Message ID: " + messageReaction.message.id) .setThumbnail(message.author.avatarURL()) .setTimestamp() .setColor('00aaff'); + if (message.content) { + messageReactionAddEmbed.addField("Message", message.content); + } + const kulboardEmbed = new Discord.MessageEmbed() .setTitle("Very kül message") .addField("Link", `[Click here!](${message.url})`)