fix(arabot): prevent readding nonvegan role in fixRoles

This commit is contained in:
Anthony Berg 2025-01-17 22:54:35 +01:00
parent 2518376f3b
commit 513d3ec581

View File

@ -126,8 +126,11 @@ export class FixRolesOnReady extends Listener {
); );
} }
// Checks if the user is vegan // Checks if the user already has vegan or non-vegan role
if (member.roles.cache.has(IDs.roles.vegan.vegan)) { if (
member.roles.cache.has(IDs.roles.vegan.vegan) ||
member.roles.cache.has(IDs.roles.nonvegan.nonvegan)
) {
count++; count++;
continue; continue;
} }
@ -160,9 +163,6 @@ export class FixRolesOnReady extends Listener {
count++; count++;
continue; continue;
} }
} else {
count++;
continue;
} }
// Give the roles to the member // Give the roles to the member