1
0
Fork 0

fixes to staff checking

refactor/models
Matthew 2020-08-14 12:26:34 -04:00
parent d376856846
commit d14bee905d
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ export default function checkStaffStatus(client: Client) {
}
const user = client.guilds.get('446067825673633794').members.get(acc.userID);
// eslint-disable-next-line no-continue
if (!user) continue;
if (!acc.permissions.director && user.roles.includes('662163685439045632')) {
await client.db.Account.updateOne({ username: acc.username }, { $set: { 'permissions.director': true } });