|
|
|
@ -11,18 +11,15 @@ class messageReactionRemoveListener extends Listener {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async exec(reaction) {
|
|
|
|
|
let starboardChannel, shameboardChannel;
|
|
|
|
|
let reactionCount = reaction.count;
|
|
|
|
|
|
|
|
|
|
if (reaction.message.partial) {
|
|
|
|
|
await reaction.message.fetch()
|
|
|
|
|
.catch(err => {
|
|
|
|
|
return console.error(err);
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let starboardChannel, shameboardChannel;
|
|
|
|
|
let reactionCount = reaction.count;
|
|
|
|
|
|
|
|
|
|
// If one of the reaction removed is the author of the message add 1 to the reaction count
|
|
|
|
|
reaction.users.cache.forEach(user => {
|
|
|
|
|
if (reaction.message.author == user) reactionCount++;
|
|
|
|
@ -74,6 +71,7 @@ class messageReactionRemoveListener extends Listener {
|
|
|
|
|
return editEmbed('shameboard', shameemote, messageID[reaction.message.id], this.client);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function editEmbed(name, emote, boardID, client) {
|
|
|
|
|
let channel;
|
|
|
|
|