fix(arabot): add check if roles list is not empty before giving roles

This commit is contained in:
smyalygames 2023-02-19 23:55:45 +00:00
parent a134dbccc4
commit a979c85079

View File

@ -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);
}
}
}