From 1e1cbe00b62a7b6c51ec18d1374f706d5c097080 Mon Sep 17 00:00:00 2001 From: Presti Date: Thu, 4 Jan 2024 09:11:50 +0100 Subject: [PATCH] Updating Avatar command. --- src/main/java/de/presti/ree6/commands/impl/info/Avatar.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/presti/ree6/commands/impl/info/Avatar.java b/src/main/java/de/presti/ree6/commands/impl/info/Avatar.java index 05bf7dd5b..12e4407ea 100644 --- a/src/main/java/de/presti/ree6/commands/impl/info/Avatar.java +++ b/src/main/java/de/presti/ree6/commands/impl/info/Avatar.java @@ -74,8 +74,8 @@ public String[] getAlias() { public void sendAvatar(User member, CommandEvent commandEvent) { EmbedBuilder em = new EmbedBuilder(); - em.setTitle(member.getEffectiveName() + (UserUtil.isSupporter(member) ? " " : ""), member.getEffectiveAvatarUrl()); - em.setImage(member.getEffectiveAvatarUrl()); + em.setAuthor(member.getEffectiveName() + (UserUtil.isSupporter(member) ? " " : ""), member.getEffectiveAvatarUrl(), member.getEffectiveAvatarUrl()); + em.setImage(member.getEffectiveAvatar().getUrl(1024)); em.setFooter("Requested by " + commandEvent.getMember().getEffectiveName() + " - " + BotConfig.getAdvertisement(), commandEvent.getMember().getEffectiveAvatarUrl()); commandEvent.reply(em.build());