diff options
Diffstat (limited to 'mod/src/main/java')
-rw-r--r-- | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/User.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/User.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/User.java index 986e9ed9..b31f189c 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/User.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/User.java @@ -97,7 +97,7 @@ public class User */ public String getAvatarUrl() { - return getAvatarId() == null ? null : "https://cdn.discord.com/avatars/" + getId() + "/" + getAvatarId() + return getAvatarId() == null ? null : "https://cdn.discordapp.com/avatars/" + getId() + "/" + getAvatarId() + (getAvatarId().startsWith("a_") ? ".gif" : ".png"); } @@ -108,7 +108,7 @@ public class User */ public String getDefaultAvatarId() { - return DefaultAvatar.values()[Integer.parseInt(getDiscriminator()) % DefaultAvatar.values().length].toString(); + return DefaultAvatar.values()[DefaultAvatar.values().length].toString(); } /** @@ -118,7 +118,7 @@ public class User */ public String getDefaultAvatarUrl() { - return "https://discord.com/assets/" + getDefaultAvatarId() + ".png"; + return "https://cdn.discordapp.com/embed/avatars/" + Integer.parseInt(getDiscriminator()) % 5 + ".png"; } /** |