(Maybe?) Fix starboards

pull/1/head
Supositware 2 years ago
parent 138ddb261c
commit a1f995855d

@ -13,14 +13,16 @@ export default {
}); });
} }
/* I don't really know why this is causing issues.
if (reaction.message.partial) { if (reaction.message.partial) {
await reaction.message.fetch() await reaction.message.fetch()
.catch(err => { .catch(err => {
return console.error(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; if (isOptOut) return;
let starboardChannel, shameboardChannel; let starboardChannel, shameboardChannel;

@ -13,14 +13,16 @@ export default {
}); });
} }
/* I don't really know why this is causing issues.
if (reaction.message.partial) { if (reaction.message.partial) {
await reaction.message.fetch() await reaction.message.fetch()
.catch(err => { .catch(err => {
return console.error(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; if (isOptOut) return;
let starboardChannel, shameboardChannel; let starboardChannel, shameboardChannel;

Loading…
Cancel
Save