Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add banner_color to User model #612

Merged
merged 4 commits into from Mar 6, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions interactions/api/models/user.py
Expand Up @@ -14,6 +14,8 @@ class User(DictSerializerMixin):
:ivar Optional[bool] system?: A status denoting if the user is an Official Discord System user
:ivar Optional[bool] mfa_enabled?: A status denoting if the user has 2fa on their account
:ivar Optional[str] banner?: The user's banner hash, if any
# TODO: change banner_color to discord's description when documented
:ivar Optional[str] banner_color?: The user's banner color as a hex, if any
:ivar Optional[int] accent_color?: The user's banner color as an integer represented of hex color codes
:ivar Optional[str] locale?: The user's chosen language option
:ivar Optional[bool] verified?: Whether the email associated with this account has been verified
Expand All @@ -34,6 +36,7 @@ class User(DictSerializerMixin):
"mfa_enabled",
"banner",
"accent_color",
"banner_color",
"locale",
"verified",
"email",
Expand Down