1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-03-23 10:29:30 +00:00

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

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)