revert the partial message change because I'm fucking dumb
This commit is contained in:
parent
89f1d056fc
commit
e6de826bcf
3 changed files with 341 additions and 343 deletions
|
@ -30,7 +30,8 @@ class messageListener extends Listener {
|
|||
.catch(err => {
|
||||
return console.error(err);
|
||||
});
|
||||
} else {
|
||||
}
|
||||
|
||||
if (message.author.bot) return;
|
||||
|
||||
/* Banned words section
|
||||
|
@ -286,9 +287,6 @@ class messageListener extends Listener {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = messageListener;
|
|
@ -12,15 +12,16 @@ class MessageReactionAddListener 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 {
|
||||
}
|
||||
|
||||
let starboardChannel, shameboardChannel;
|
||||
let reactionCount = reaction.count;
|
||||
|
||||
// If one of the reaction is the author of the message remove 1 to the reaction count
|
||||
reaction.users.cache.forEach(user => {
|
||||
if (reaction.message.author == user) reactionCount--;
|
||||
|
@ -67,7 +68,6 @@ class MessageReactionAddListener extends Listener {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function editEmbed(name, emote, boardID, client) {
|
||||
let channel;
|
||||
|
|
|
@ -11,15 +11,16 @@ 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 {
|
||||
}
|
||||
|
||||
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++;
|
||||
|
@ -71,7 +72,6 @@ class messageReactionRemoveListener extends Listener {
|
|||
return editEmbed('shameboard', shameemote, messageID[reaction.message.id], this.client);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function editEmbed(name, emote, boardID, client) {
|
||||
let channel;
|
||||
|
|
Loading…
Reference in a new issue