Browse Source

Make külboard fields inline and wrap message in code

master
Abheek Dhawan 4 years ago
parent
commit
9dd6ff7c19
  1. 16
      bot.js

16
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) => {

Loading…
Cancel
Save