From de67928602975599c0a98e103f301dce8a951de4 Mon Sep 17 00:00:00 2001 From: tippfehlr Date: Tue, 12 Mar 2024 22:02:23 +0100 Subject: [PATCH] perf: remove check if member has role when adding role --- src/modules/bot.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/modules/bot.ts b/src/modules/bot.ts index b31c493..84c89c5 100644 --- a/src/modules/bot.ts +++ b/src/modules/bot.ts @@ -269,7 +269,6 @@ client.on(Events.PresenceUpdate, async (oldMember, newMember) => { return; } if (!highestBotRolePosition || highestBotRolePosition <= role.position) return; - if (newMember.member?.roles.cache.has(role.id)) return; if (permanent) { writeIntPoint('roles_added', 'permanent_roles_added', 1); } else {