From 4b18238ade0137d6a809b065bfc62daccebd408c Mon Sep 17 00:00:00 2001 From: BluePhoenixGame <38372706+BluePhoenixGame@users.noreply.github.com> Date: Wed, 9 Sep 2020 06:52:19 +0200 Subject: [PATCH] Add discord.Colour classmethod dark_theme --- discord/colour.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/discord/colour.py b/discord/colour.py index ccaa7e050..c26602e25 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