From 36d29caa7aefee06d053e17698935619c44a2725 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 5 Jul 2024 22:29:25 +0100 Subject: [PATCH] change avatar url in the log --- .../bat/features/logging/listeners/MemberListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java b/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java index ecad0e1..6682938 100644 --- a/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java +++ b/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java @@ -148,6 +148,7 @@ public class MemberListener implements EventListener { if (user.getDiscordUser().isBot()) { return; } + newAvatarUrl = user.getDiscordUser().getAvatar() == null ? null : user.getDiscordUser().getAvatar().getUrl(4096); log.info("User \"{}\" changed their avatar to \"{}\"", user.getName(), newAvatarUrl); for (Guild guild : DiscordService.JDA.getGuilds()) {