From 06ded19492861aaff61c4392117fe09042529697 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 4 Jul 2024 09:57:12 +0100 Subject: [PATCH] fix new avatar being broken if they remove their avatar --- .../bat/features/logging/listeners/MemberListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f5e3694..cebe66c 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 @@ -151,7 +151,7 @@ public class MemberListener implements EventListener { .setDescription(new EmbedDescriptionBuilder("Member Avatar Updated") .appendLine("Member: %s".formatted(user.getDiscordUser().getAsMention()), true) // .appendLine("Old Avatar: %s".formatted(oldAvatarUrl == null ? "None" : "[avatar](%s)".formatted(oldAvatarUrl)), true) - .appendLine("New Avatar: [avatar](%s)".formatted(newAvatarUrl), true) + .appendLine("New Avatar: %s".formatted(newAvatarUrl == null ? "Removed" : "[avatar](%s)".formatted(newAvatarUrl)), true) .build()) .setThumbnail(newAvatarUrl) .build());