fixes to staff checking

merge-requests/4/head
Matthew 2020-08-14 12:26:06 -04:00
parent d44d41a330
commit d376856846
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);
if (!user) continue;
if (!acc.permissions.director && user.roles.includes('662163685439045632')) {
await client.db.Account.updateOne({ username: acc.username }, { $set: { 'permissions.director': true } });
if (acc.ramLimitNotification !== -1) {