mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 00:54:13 +02:00
fix(arabot): add potential fix for restricted roles
This commit is contained in:
parent
f6149a60f5
commit
9990db84b2
@ -40,7 +40,9 @@ export class RolesJoinServerListener extends Listener {
|
||||
// Check if the user is restricted
|
||||
if (await checkActive(member.id)) {
|
||||
const section = await getSection(member.id);
|
||||
roles.length = 0;
|
||||
for (let i = 0; i < roles.length; i += 1) {
|
||||
roles.pop();
|
||||
}
|
||||
roles.push(IDs.roles.restrictions.restricted[section - 1]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user