diff --git a/events/client/messageReactionAdd.js b/events/client/messageReactionAdd.js index 1fc5bf3..1188551 100644 --- a/events/client/messageReactionAdd.js +++ b/events/client/messageReactionAdd.js @@ -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; diff --git a/events/client/messageReactionRemove.js b/events/client/messageReactionRemove.js index a79e3f5..e0f1d80 100644 --- a/events/client/messageReactionRemove.js +++ b/events/client/messageReactionRemove.js @@ -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;