forked from Fascinated/Bat
consistency
This commit is contained in:
parent
ab5cec535b
commit
60ce8df108
@ -46,8 +46,9 @@ public class SyncSubCommand extends BatCommand {
|
|||||||
|
|
||||||
// Find members that are missing the auto roles
|
// Find members that are missing the auto roles
|
||||||
members.removeIf(foundMember -> {
|
members.removeIf(foundMember -> {
|
||||||
if (foundMember.getUser().isBot()) return true;
|
if (foundMember.getUser().isBot() || foundMember.getId().equals(discordGuild.getSelfMember().getId())) {
|
||||||
if (foundMember.getId().equals(discordGuild.getSelfMember().getId())) return true;
|
return true;
|
||||||
|
}
|
||||||
return new HashSet<>(foundMember.getRoles()).containsAll(profile.getRoles());
|
return new HashSet<>(foundMember.getRoles()).containsAll(profile.getRoles());
|
||||||
});
|
});
|
||||||
log.info("Found {} members that are missing auto roles in guild \"{}\"", members.size(), discordGuild.getName());
|
log.info("Found {} members that are missing auto roles in guild \"{}\"", members.size(), discordGuild.getName());
|
||||||
|
Loading…
Reference in New Issue
Block a user