From 52223b5233027174fd0fa5727ed4b615f31b900f Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 2 Jul 2024 20:06:41 +0100 Subject: [PATCH] add avatar to member join log --- .../bat/features/logging/listeners/MemberListener.java | 3 ++- 1 file changed, 2 insertions(+), 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 a9c19dc..a708136 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 @@ -46,6 +46,7 @@ public class MemberListener implements EventListener { .appendLine("Username: %s".formatted(user.getDiscordUser().getName()), true) .appendLine("Account Age: ".formatted(user.getDiscordUser().getTimeCreated().toEpochSecond()), true) .build()) + .setThumbnail(user.getDiscordUser().getEffectiveAvatarUrl()) .build()); } @@ -66,7 +67,7 @@ public class MemberListener implements EventListener { if (user.getDiscordUser().isBot()) return; logFeature.sendLog(guild, LogType.MEMBER_NICKNAME_UPDATE, EmbedUtils.genericEmbed() - .setDescription(new EmbedDescriptionBuilder("Member Nickname Changed") + .setDescription(new EmbedDescriptionBuilder("Member Nickname Updated") .appendLine("Member: %s".formatted(user.getDiscordUser().getAsMention()), true) .appendLine("Old Nickname: `%s`".formatted(oldName == null ? user.getName() : oldName), true) .appendLine("New Nickname: `%s`".formatted(newName == null ? "Removed Nickname" : newName), true)