From 60ce8df108e091042d5196cb0a879100a0408766 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 6 Jul 2024 02:11:02 +0100 Subject: [PATCH] consistency --- .../bat/features/autorole/command/SyncSubCommand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/features/autorole/command/SyncSubCommand.java b/src/main/java/cc/fascinated/bat/features/autorole/command/SyncSubCommand.java index 9a241f4..ab885bc 100644 --- a/src/main/java/cc/fascinated/bat/features/autorole/command/SyncSubCommand.java +++ b/src/main/java/cc/fascinated/bat/features/autorole/command/SyncSubCommand.java @@ -46,8 +46,9 @@ public class SyncSubCommand extends BatCommand { // Find members that are missing the auto roles members.removeIf(foundMember -> { - if (foundMember.getUser().isBot()) return true; - if (foundMember.getId().equals(discordGuild.getSelfMember().getId())) return true; + if (foundMember.getUser().isBot() || foundMember.getId().equals(discordGuild.getSelfMember().getId())) { + return true; + } return new HashSet<>(foundMember.getRoles()).containsAll(profile.getRoles()); }); log.info("Found {} members that are missing auto roles in guild \"{}\"", members.size(), discordGuild.getName());