feat(backend): some member routes, half-broken avatar uploading

This commit is contained in:
Sam 2022-09-20 12:55:00 +02:00
parent 220e8fa71d
commit b48fc74042
17 changed files with 759 additions and 32 deletions

View file

@ -97,8 +97,8 @@ func (bot *Bot) userPronouns(w http.ResponseWriter, r *http.Request, ev *discord
}
avatarURL := du.AvatarURL("")
if u.AvatarURL != nil {
avatarURL = *u.AvatarURL
if len(u.AvatarURLs) > 0 {
avatarURL = u.AvatarURLs[0]
}
name := u.Username
if u.DisplayName != nil {