forked from Fascinated/Bat
change auto role log to include the guild
This commit is contained in:
parent
655662c6f8
commit
2b4980fb10
@ -49,7 +49,11 @@ public class AutoRoleListener implements EventListener {
|
||||
event.getGuild().addRoleToMember(event.getMember(), role).queue();
|
||||
}
|
||||
toRemove.forEach(profile::removeRole);
|
||||
log.info("Gave user \"{}\" {} auto roles{}", user.getId(), profile.getRoles().size(), toRemove.isEmpty() ? ""
|
||||
: " and removed %s invalid roles".formatted(toRemove.size()));
|
||||
log.info("Gave user \"{}\" {} auto roles in guild \"{}\"{}",
|
||||
user.getId(),
|
||||
profile.getRoles().size(),
|
||||
guild.getName(),
|
||||
toRemove.isEmpty() ? "" : " and removed %s invalid roles from the profile".formatted(toRemove.size())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user