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