From 9dd6ff7c193c6f0fa12443b1decb1d66b687b86a Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Mon, 5 Apr 2021 09:22:32 -0500 Subject: [PATCH] =?UTF-8?q?Make=20k=C3=BClboard=20fields=20inline=20and=20?= =?UTF-8?q?wrap=20message=20in=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bot.js b/bot.js index e3bb277..b130dc1 100644 --- a/bot.js +++ b/bot.js @@ -819,17 +819,17 @@ client.on('messageReactionAdd', (messageReaction, user) => { const kulboardEmbed = new Discord.MessageEmbed() .setTitle(`${coolness} Very Kül Message`) - .addField("Link", `[Click here!](${message.url})`) + .addField("Link", `[Click here!](${message.url})`, true) .setAuthor(message.author.tag, message.author.avatarURL()) - .addField(`# of 😎 Reactions`, `${numEmoji}`) - .addField("Channel", message.channel) + .addField(`# of 😎 Reactions`, `${numEmoji}`, true) + .addField("Channel", message.channel, true) .setThumbnail(message.author.avatarURL()) .setFooter("Message ID: " + message.id) .setColor("00c5ff") .setTimestamp(); if (message.content) { - kulboardEmbed.addField("Message", message.content) + kulboardEmbed.addField("Message", `\`\`\`${message.content}\`\`\``) } collection.findOne({ guild_id: messageReaction.message.guild.id }, (error, result) => { let kulboardChannel; @@ -904,17 +904,17 @@ client.on('messageReactionRemove', (messageReaction, user) => { const kulboardEmbed = new Discord.MessageEmbed() .setTitle(`${coolness} Very Kül Message`) - .addField("Link", `[Click here!](${message.url})`) + .addField("Link", `[Click here!](${message.url})`, true) .setAuthor(message.author.tag, message.author.avatarURL()) - .addField(`# of 😎 Reactions`, `${numEmoji}`) - .addField("Channel", message.channel) + .addField(`# of 😎 Reactions`, `${numEmoji}`, true) + .addField("Channel", message.channel, true) .setThumbnail(message.author.avatarURL()) .setFooter("Message ID: " + message.id) .setColor("00c5ff") .setTimestamp(); if (message.content) { - kulboardEmbed.addField("Message", message.content) + kulboardEmbed.addField("Message", `\`\`\`${message.content}\`\`\``) } collection.findOne({ guild_id: messageReaction.message.guild.id }, (error, result) => {