diff options
author | Marko Zajc <marko@zajc.eu.org> | 2023-03-21 22:13:13 +0100 |
---|---|---|
committer | Marko Zajc <marko@zajc.eu.org> | 2023-03-21 22:13:13 +0100 |
commit | 67f7ad8bc2d4ee041c06c958bd71cf006818b846 (patch) | |
tree | 53786d8b998c8a0202c7373fa7c26e2700b8d30c | |
parent | b22d33e26128086e20208662280467f147be9a06 (diff) |
Use highest available resolution for *avatar
-rw-r--r-- | src/main/java/libot/commands/AvatarCommand.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/libot/commands/AvatarCommand.java b/src/main/java/libot/commands/AvatarCommand.java index 2f03138..1d21ade 100644 --- a/src/main/java/libot/commands/AvatarCommand.java +++ b/src/main/java/libot/commands/AvatarCommand.java | |||
@@ -43,9 +43,10 @@ public class AvatarCommand extends Command { | |||
43 | } | 43 | } |
44 | 44 | ||
45 | private static void sendAvatar(@Nonnull CommandContext c, @Nonnull User user) { | 45 | private static void sendAvatar(@Nonnull CommandContext c, @Nonnull User user) { |
46 | var url = user.getEffectiveAvatarUrl() + "?size=4096"; | ||
46 | var e = new EmbedPrebuilder(LITHIUM); | 47 | var e = new EmbedPrebuilder(LITHIUM); |
47 | e.setImage(user.getEffectiveAvatarUrl()); | 48 | e.setImage(url); |
48 | e.setDescriptionf("[Download](%s)", user.getEffectiveAvatarUrl()); | 49 | e.setDescriptionf("[Download](%s)", url); |
49 | c.reply(e); | 50 | c.reply(e); |
50 | } | 51 | } |
51 | 52 | ||