Default avatar round 2 !
This commit is contained in:
parent
ddd9d070e4
commit
49f796fe34
@ -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;
|
||||
|
@ -166,7 +166,7 @@ public class UserStatsUtils {
|
||||
List<UserStats> allStats = userStatsRepository.findByGuildId(guildId);
|
||||
List<GuildStats> 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;
|
||||
|
Loading…
Reference in New Issue
Block a user