|
|
@ -25,7 +25,7 @@ class MessageReactionAddListener extends Listener {
|
|
|
|
const channel = this.client.channels.get(starboardChannel['starboard']);
|
|
|
|
const channel = this.client.channels.get(starboardChannel['starboard']);
|
|
|
|
|
|
|
|
|
|
|
|
const starEmbed = new MessageEmbed()
|
|
|
|
const starEmbed = new MessageEmbed()
|
|
|
|
.setColor()
|
|
|
|
.setColor(reaction.message.member.displayHexColor)
|
|
|
|
.setDescription(messageContent)
|
|
|
|
.setDescription(messageContent)
|
|
|
|
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL)
|
|
|
|
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL)
|
|
|
|
.setTimestamp();
|
|
|
|
.setTimestamp();
|
|
|
@ -33,7 +33,7 @@ class MessageReactionAddListener extends Listener {
|
|
|
|
channel.send({ embed: starEmbed});
|
|
|
|
channel.send({ embed: starEmbed});
|
|
|
|
return channel.send(`From: ${reaction.message.channel} ID: ${reaction.message.id} \n${messageAttachments}`);
|
|
|
|
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))
|
|
|
|
if (messageID.includes(reaction.message.id))
|
|
|
|
return console.log('Message already in starboard!');
|
|
|
|
return console.log('Message already in starboard!');
|
|
|
|
|
|
|
|
|
|
|
@ -43,9 +43,9 @@ class MessageReactionAddListener extends Listener {
|
|
|
|
const channel = this.client.channels.get(shameboardChannel['shameboard']);
|
|
|
|
const channel = this.client.channels.get(shameboardChannel['shameboard']);
|
|
|
|
|
|
|
|
|
|
|
|
const shameEmbed = new MessageEmbed()
|
|
|
|
const shameEmbed = new MessageEmbed()
|
|
|
|
.setColor()
|
|
|
|
.setColor(reaction.message.member.displayHexColor)
|
|
|
|
.setDescription(messageContent)
|
|
|
|
.setDescription(messageContent)
|
|
|
|
.setAuthor(reaction.message.author.username, reaction.message.author.avatar)
|
|
|
|
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL)
|
|
|
|
.setTimestamp();
|
|
|
|
.setTimestamp();
|
|
|
|
|
|
|
|
|
|
|
|
channel.send({ embed: shameEmbed});
|
|
|
|
channel.send({ embed: shameEmbed});
|
|
|
|