1
0
Fork 0
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:
PlavorSeol 2023-07-18 15:01:50 +09:00 committed by GitHub
parent 4224b93c4e
commit 78e456d49e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"