mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 08:24:16 +02:00
fix(arabot): add check if roles list is not empty before giving roles
This commit is contained in:
parent
a134dbccc4
commit
a979c85079
@ -53,6 +53,8 @@ export class RolesJoinServerListener extends Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add roles if they don't have verification block
|
// Add roles if they don't have verification block
|
||||||
|
if (roles.length > 0) {
|
||||||
await member.roles.add(roles);
|
await member.roles.add(roles);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user