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:
parent
eefb6d731c
commit
530bff74a2
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue