forked from Supositware/Haha-Yes
(Maybe?) Fix starboards
This commit is contained in:
parent
138ddb261c
commit
a1f995855d
2 changed files with 6 additions and 2 deletions
|
@ -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…
Reference in a new issue