forked from Supositware/Haha-Yes
Load partial
This commit is contained in:
parent
b84a16cc6f
commit
45dd34c7b8
3 changed files with 23 additions and 3 deletions
|
@ -14,7 +14,14 @@ class messageListener extends Listener {
|
|||
});
|
||||
}
|
||||
|
||||
async exec(message) {
|
||||
async exec(message) {
|
||||
if (message.partial) {
|
||||
await message.fetch()
|
||||
.catch(() => {
|
||||
return;
|
||||
});
|
||||
}
|
||||
|
||||
if (message.author.bot) return;
|
||||
|
||||
|
||||
|
|
|
@ -12,6 +12,13 @@ class MessageReactionAddListener extends Listener {
|
|||
}
|
||||
|
||||
async exec(reaction) {
|
||||
if (reaction.message.partial) {
|
||||
await reaction.message.fetch()
|
||||
.catch(() => {
|
||||
return;
|
||||
});
|
||||
}
|
||||
|
||||
let starboardChannel, shameboardChannel;
|
||||
let reactionCount = reaction.count;
|
||||
|
||||
|
|
|
@ -10,8 +10,14 @@ class messageReactionRemoveListener extends Listener {
|
|||
});
|
||||
}
|
||||
|
||||
async exec(reaction, user) {
|
||||
if (reaction.message.author == user) return;
|
||||
async exec(reaction) {
|
||||
if (reaction.message.partial) {
|
||||
await reaction.message.fetch()
|
||||
.catch(() => {
|
||||
return;
|
||||
});
|
||||
}
|
||||
|
||||
let starboardChannel, shameboardChannel;
|
||||
|
||||
// Starboard
|
||||
|
|
Loading…
Reference in a new issue