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
1 changed files with 1 additions and 1 deletions

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"