diff options
| author | BluePhoenixGame <[email protected]> | 2020-09-09 06:52:19 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-09 00:52:19 -0400 |
| commit | 4b18238ade0137d6a809b065bfc62daccebd408c (patch) | |
| tree | 1081de7824d9d8e04dca0b2ff5127571bf9359ca | |
| parent | Add fetch_message_fast using history endpoint (diff) | |
| download | discord.py-4b18238ade0137d6a809b065bfc62daccebd408c.tar.xz discord.py-4b18238ade0137d6a809b065bfc62daccebd408c.zip | |
Add discord.Colour classmethod dark_theme
| -rw-r--r-- | discord/colour.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/discord/colour.py b/discord/colour.py index ccaa7e05..c26602e2 100644 --- a/discord/colour.py +++ b/discord/colour.py @@ -235,4 +235,13 @@ class Colour: """A factory method that returns a :class:`Colour` with a value of ``0x99aab5``.""" return cls(0x99aab5) + @classmethod + def dark_theme(cls): + """A factory method that returns a :class:'Colour' with a value of ``0x36393F``. + Will appear transparent on Discord's dark theme and be the text colour on Discord's light theme. + + .. versionadded:: 1.5 + """ + return cls(0x36393F) + Color = Colour |