From 2b4980fb10f35c0bbe13cebd3fe0a92350ec8a6b Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 3 Jul 2024 22:18:51 +0100 Subject: [PATCH] change auto role log to include the guild --- .../bat/features/autorole/AutoRoleListener.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/features/autorole/AutoRoleListener.java b/src/main/java/cc/fascinated/bat/features/autorole/AutoRoleListener.java index ee501c1..eaa7dd3 100644 --- a/src/main/java/cc/fascinated/bat/features/autorole/AutoRoleListener.java +++ b/src/main/java/cc/fascinated/bat/features/autorole/AutoRoleListener.java @@ -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()) + ); } }