forked from engineering/cloudservices
fix issue in automatic perm checks
parent
a9c1e79d29
commit
53774752dd
|
@ -26,7 +26,7 @@ export default function checkStaffStatus(client: Client) {
|
||||||
await client.db.Account.updateOne({ username: acc.username }, { $set: { 'permissions.staff': false } });
|
await client.db.Account.updateOne({ username: acc.username }, { $set: { 'permissions.staff': false } });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (acc.permissions.staff && acc.tier > 3) {
|
if (acc.permissions.staff && acc.tier < 3) {
|
||||||
await client.db.Account.updateOne({ username: acc.username }, { $set: { tier: 3 } });
|
await client.db.Account.updateOne({ username: acc.username }, { $set: { tier: 3 } });
|
||||||
client.getDMChannel(acc.userID).then((chan) => {
|
client.getDMChannel(acc.userID).then((chan) => {
|
||||||
chan.createMessage('***Your account has automatically been upgraded to Tier 3 since you are a Staff member.***');
|
chan.createMessage('***Your account has automatically been upgraded to Tier 3 since you are a Staff member.***');
|
||||||
|
|
Loading…
Reference in New Issue