diff --git a/src/main/java/net/Broken/Tools/UserManager/Stats/GuildStats.java b/src/main/java/net/Broken/Tools/UserManager/Stats/GuildStats.java index 8c77598..01d0115 100644 --- a/src/main/java/net/Broken/Tools/UserManager/Stats/GuildStats.java +++ b/src/main/java/net/Broken/Tools/UserManager/Stats/GuildStats.java @@ -22,10 +22,7 @@ public class GuildStats{ public GuildStats(String userName, int rank, String avatarUrl, long voiceTime, long messageCount, long apiCount) { this.userName = userName; - if(avatarUrl != null) - this.avatarUrl = avatarUrl; - else - this.avatarUrl = "https://discordapp.com/assets/dd4dbc0016779df1378e7812eabaa04d.png"; + this.avatarUrl = avatarUrl; this.voiceTime = voiceTime; this.messageCount = messageCount; this.apiCount = apiCount; diff --git a/src/main/java/net/Broken/Tools/UserManager/Stats/UserStatsUtils.java b/src/main/java/net/Broken/Tools/UserManager/Stats/UserStatsUtils.java index 6443be8..79fd099 100644 --- a/src/main/java/net/Broken/Tools/UserManager/Stats/UserStatsUtils.java +++ b/src/main/java/net/Broken/Tools/UserManager/Stats/UserStatsUtils.java @@ -166,7 +166,7 @@ public class UserStatsUtils { List allStats = userStatsRepository.findByGuildId(guildId); List ranked = new ArrayList<>(); for(UserStats stats : allStats){ - String avatar = MainBot.jda.getUserById(stats.getUser().getJdaId()).getAvatarUrl(); + String avatar = MainBot.jda.getUserById(stats.getUser().getJdaId()).getEffectiveAvatarUrl(); GuildStats temp = new GuildStats(stats.getUser().getName(), 0, avatar, stats.getVocalTime(), stats.getMessageCount(), stats.getApiCommandCount()); if(stats.getUser().getId().equals(userEntity.getId())){ selfGuildStats = temp;