fix new avatar being broken if they remove their avatar
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 43s

This commit is contained in:
Lee 2024-07-04 09:57:12 +01:00
parent 6ba802912f
commit 06ded19492

@ -151,7 +151,7 @@ public class MemberListener implements EventListener {
.setDescription(new EmbedDescriptionBuilder("Member Avatar Updated") .setDescription(new EmbedDescriptionBuilder("Member Avatar Updated")
.appendLine("Member: %s".formatted(user.getDiscordUser().getAsMention()), true) .appendLine("Member: %s".formatted(user.getDiscordUser().getAsMention()), true)
// .appendLine("Old Avatar: %s".formatted(oldAvatarUrl == null ? "None" : "[avatar](%s)".formatted(oldAvatarUrl)), 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()) .build())
.setThumbnail(newAvatarUrl) .setThumbnail(newAvatarUrl)
.build()); .build());