Skip to content

Commit 31551b9

Browse files
kytewarei0bs
andauthored
fix: add banner_color to User model (#612)
* fix: add banner_color to User model added to __slots__ and to docstring * fix: update the docstring edit with correct name Co-authored-by: fl0w <41456914+goverfl0w@users.noreply.github.com> * doc: added banner_color to pyi Co-authored-by: fl0w <41456914+goverfl0w@users.noreply.github.com>
1 parent e94b95b commit 31551b9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

interactions/api/models/user.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ class User(DictSerializerMixin):
1414
:ivar Optional[bool] system?: A status denoting if the user is an Official Discord System user
1515
:ivar Optional[bool] mfa_enabled?: A status denoting if the user has 2fa on their account
1616
:ivar Optional[str] banner?: The user's banner hash, if any
17+
# TODO: change banner_color to discord's description when documented
18+
:ivar Optional[str] banner_color?: The user's banner color as a hex, if any
1719
:ivar Optional[int] accent_color?: The user's banner color as an integer represented of hex color codes
1820
:ivar Optional[str] locale?: The user's chosen language option
1921
:ivar Optional[bool] verified?: Whether the email associated with this account has been verified
@@ -34,6 +36,7 @@ class User(DictSerializerMixin):
3436
"mfa_enabled",
3537
"banner",
3638
"accent_color",
39+
"banner_color",
3740
"locale",
3841
"verified",
3942
"email",

interactions/api/models/user.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class User(DictSerializerMixin):
1414
mfa_enabled: Optional[bool]
1515
banner: Optional[str]
1616
accent_color: Optional[int]
17+
banner_color: Optional[str]
1718
locale: Optional[str]
1819
verified: Optional[bool]
1920
email: Optional[str]

0 commit comments

Comments
 (0)