forked from engineering/cloudservices
fixes to staff checking
parent
d376856846
commit
d14bee905d
|
@ -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 } });
|
||||
|
|
Loading…
Reference in New Issue