Discord: fix faulty default image link

This commit is contained in:
mavolin 2020-05-22 23:38:53 +02:00 committed by diamondburned
parent eefb6d731c
commit 530bff74a2
1 changed files with 2 additions and 1 deletions

View File

@ -51,8 +51,9 @@ func (u User) AvatarURLWithType(t ImageType) string {
if err != nil { // this should never happen
return ""
}
picNo := strconv.Itoa(disc % 5)
return "https://cdn.discordapp.com/embed/avatars/" + string(disc%5) + ".png"
return "https://cdn.discordapp.com/embed/avatars/" + picNo + ".png"
}
return "https://cdn.discordapp.com/avatars/" + u.ID.String() + "/" + t.format(u.Avatar)