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: change Colour.embed_background() colors to correspond to new colors #1931

Merged
merged 1 commit into from
Feb 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions discord/colour.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ def embed_background(cls: type[CT], theme: str = "dark") -> CT:
"""A factory method that returns a :class:`Color` corresponding to the
embed colors on discord clients, with a value of:

- ``0x2F3136`` (dark)
- ``0xf2f3f5`` (light)
- ``0x2B2D31`` (dark)
- ``0xEEEFF1`` (light)
- ``0x000000`` (amoled).

.. versionadded:: 2.0
Expand All @@ -350,8 +350,8 @@ def embed_background(cls: type[CT], theme: str = "dark") -> CT:
The theme color to apply, must be one of "dark", "light", or "amoled".
"""
themes_cls = {
"dark": 0x2F3136,
"light": 0xF2F3F5,
"dark": 0x2B2D31,
"light": 0xEEEFF1,
"amoled": 0x000000,
}

Expand Down