Skip to content

Commit

Permalink
Merge pull request #48 from Breq16/bug/47-avatar-hash
Browse files Browse the repository at this point in the history
Look for avatar hash in `avatar` field (#47)
  • Loading branch information
breqdev authored Aug 24, 2021
2 parents f689c3a + 92dc609 commit 0e6afe6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flask_discord_interactions/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ class User(ContextObject):
@classmethod
def from_dict(cls, data):
data = {**data, **data.get("user", {})}
data["avatar_hash"] = data.get("avatar")
return super().from_dict(data)

@property
Expand Down

0 comments on commit 0e6afe6

Please sign in to comment.