(Maybe?) Fix starboards

This commit is contained in:
Supositware 2022-09-10 09:10:34 +02:00
parent 138ddb261c
commit a1f995855d
2 changed files with 6 additions and 2 deletions

View file

@ -13,14 +13,16 @@ export default {
});
}
/* I don't really know why this is causing issues.
if (reaction.message.partial) {
await reaction.message.fetch()
.catch(err => {
return console.error(err);
});
}
*/
const isOptOut = await db.optout.findOne({ where: { userID: reaction.message.author } });
const isOptOut = await db.optout.findOne({ where: { userID: reaction.message.author.id } });
if (isOptOut) return;
let starboardChannel, shameboardChannel;

View file

@ -13,14 +13,16 @@ export default {
});
}
/* I don't really know why this is causing issues.
if (reaction.message.partial) {
await reaction.message.fetch()
.catch(err => {
return console.error(err);
});
}
*/
const isOptOut = await db.optout.findOne({ where: { userID: reaction.message.author } });
const isOptOut = await db.optout.findOne({ where: { userID: reaction.message.author.id } });
if (isOptOut) return;
let starboardChannel, shameboardChannel;