mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-02 22:19:49 +01:00
fix(arabot): fix infinite for loop when finding restricted role
This commit is contained in:
parent
eb345d1866
commit
dab4f1767c
@ -162,7 +162,7 @@ export class UnRestrictCommand extends Command {
|
||||
await unRestrict(userId, modId);
|
||||
} else {
|
||||
let section = 1;
|
||||
for (let i = 0; i < restrictRoles.length; i += 0) {
|
||||
for (let i = 0; i < restrictRoles.length; i += 1) {
|
||||
if (member.roles.cache.has(restrictRoles[i])) {
|
||||
section = i + 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user