Skip to content

Commit

Permalink
revert(perf): remove check if member has role when adding role
Browse files Browse the repository at this point in the history
This reverts commit de67928.
  • Loading branch information
tippfehlr committed Mar 12, 2024
1 parent ff1036d commit cdda62b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ 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 {
Expand Down

0 comments on commit cdda62b

Please sign in to comment.