Skip to content

Commit

Permalink
Merge pull request #234 from badgamernl/patch-1
Browse files Browse the repository at this point in the history
Discord avatar URL update
  • Loading branch information
bentranter authored Jul 21, 2018
2 parents 77887a1 + 3d7df9b commit 5fad70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/discord/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func userFromReader(r io.Reader, user *goth.User) error {

user.Name = u.Name
user.Email = u.Email
user.AvatarURL = "https://discordapp.com/api/users/" + u.ID + "/avatars/" + u.AvatarID + ".jpg"
user.AvatarURL = "https://media.discordapp.net/avatars/" + u.ID + "/" + u.AvatarID + ".jpg"
user.UserID = u.ID

return nil
Expand Down

0 comments on commit 5fad70a

Please sign in to comment.