mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-27 09:12:53 +00:00
discord: Fix calculation of default avatar URL (#398)
* Fix the calculation of a default user avatar index * run go fmt
This commit is contained in:
parent
4224b93c4e
commit
78e456d49e
|
@ -91,7 +91,7 @@ func (u User) AvatarURLWithType(t ImageType) string {
|
|||
}
|
||||
picNo = strconv.Itoa(disc % 5)
|
||||
} else {
|
||||
picNo = strconv.FormatUint(uint64(u.ID>>22)%5, 10)
|
||||
picNo = strconv.FormatUint(uint64(u.ID>>22)%6, 10)
|
||||
}
|
||||
|
||||
return "https://cdn.discordapp.com/embed/avatars/" + picNo + ".png"
|
||||
|
|
Loading…
Reference in a new issue