forked from engineering/cloudservices
fixes to staff checking
parent
d44d41a330
commit
d376856846
|
@ -14,6 +14,7 @@ export default function checkStaffStatus(client: Client) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const user = client.guilds.get('446067825673633794').members.get(acc.userID);
|
const user = client.guilds.get('446067825673633794').members.get(acc.userID);
|
||||||
|
if (!user) continue;
|
||||||
if (!acc.permissions.director && user.roles.includes('662163685439045632')) {
|
if (!acc.permissions.director && user.roles.includes('662163685439045632')) {
|
||||||
await client.db.Account.updateOne({ username: acc.username }, { $set: { 'permissions.director': true } });
|
await client.db.Account.updateOne({ username: acc.username }, { $set: { 'permissions.director': true } });
|
||||||
if (acc.ramLimitNotification !== -1) {
|
if (acc.ramLimitNotification !== -1) {
|
||||||
|
|
Loading…
Reference in New Issue