From d25df9faac075417522dcb2bb8cf4ef81a821c06 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 4 Jan 2019 19:43:10 +0100 Subject: [PATCH] added color and fixed shameboard --- listeners/messageReactionAdd.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/listeners/messageReactionAdd.js b/listeners/messageReactionAdd.js index 33ee8b6f..5ae2b78f 100644 --- a/listeners/messageReactionAdd.js +++ b/listeners/messageReactionAdd.js @@ -25,7 +25,7 @@ class MessageReactionAddListener extends Listener { const channel = this.client.channels.get(starboardChannel['starboard']); const starEmbed = new MessageEmbed() - .setColor() + .setColor(reaction.message.member.displayHexColor) .setDescription(messageContent) .setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL) .setTimestamp(); @@ -33,7 +33,7 @@ class MessageReactionAddListener extends Listener { channel.send({ embed: starEmbed}); return channel.send(`From: ${reaction.message.channel} ID: ${reaction.message.id} \n${messageAttachments}`); } - if (reaction.emoji.name === '✡' && reaction.count === 4) { + if (reaction.emoji.name === '✡' && reaction.count === 1) { if (messageID.includes(reaction.message.id)) return console.log('Message already in starboard!'); @@ -43,9 +43,9 @@ class MessageReactionAddListener extends Listener { const channel = this.client.channels.get(shameboardChannel['shameboard']); const shameEmbed = new MessageEmbed() - .setColor() + .setColor(reaction.message.member.displayHexColor) .setDescription(messageContent) - .setAuthor(reaction.message.author.username, reaction.message.author.avatar) + .setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL) .setTimestamp(); channel.send({ embed: shameEmbed});