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()) {