Skip to content

Commit dcf2fe1

Browse files
committed
fix: guildRank roles filtering
1 parent 8dfadfd commit dcf2fe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/discord/commands/updateCommand.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ async function updateRoles({ discordId, uuid }) {
281281
};
282282

283283
if (verificationRoles.custom.length > 0) {
284-
for (const role of verificationRoles.custom) {
284+
for (const role of verificationRoles.custom.filter((r) => r.requirements.some((req) => req.type !== "guildRank"))) {
285285
if (role.enabled === false) {
286286
continue;
287287
}

0 commit comments

Comments
 (0)