Skip to content

Commit a4e725c

Browse files
committed
Include banner and display emoji for accounts
1 parent 10ff1d9 commit a4e725c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "recnetpy"
7-
version = "0.2.63"
7+
version = "0.2.64"
88
authors = [
99
{ name="RecNetBot Development"}
1010
]

src/recnetpy/dataclasses/account.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class Account(BaseDataClass['AccountResponse']):
2626
username: str
2727
#: This is what appears in bold above the username on an account's page on RecNet. The display name is not unique unlike the username.
2828
display_name: str
29+
#: This is the RR+ exclusive display emoji.
30+
display_emoji: Optional[str] = None
2931
#: This is the file name of an account's profile picture.
3032
profile_image: str
3133
#: This is true if the account is a junior account, false if the account is a non-junior account.
@@ -74,6 +76,7 @@ def patch_data(self, data: 'AccountResponse') -> None:
7476
self.display_name = data['displayName']
7577
self.profile_image = data['profileImage']
7678
self.banner_image = data.get("bannerImage", None)
79+
self.display_emoji = data.get("displayEmoji", None)
7780
#self.is_junior = bool(data['isJunior'])
7881
self.platforms = bitmask_decode(data['platforms'], PLATFORM_LIST)
7982
self.personal_pronouns = bitmask_decode(data['personalPronouns'], PERSONAL_PRONOUNS_LIST)

0 commit comments

Comments
 (0)