From 8b0bb2aba9e0e747383f865de8e1311fba55bb33 Mon Sep 17 00:00:00 2001 From: RoxMine Date: Fri, 2 May 2025 12:48:26 +0200 Subject: [PATCH] Add new Discord UI background colours (Ash, Dark, Onyx) --- discord/colour.py | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/discord/colour.py b/discord/colour.py index 7e3a37132..3095883bc 100644 --- a/discord/colour.py +++ b/discord/colour.py @@ -522,5 +522,35 @@ class Colour: """ return cls(0xEB459F) + @classmethod + def ash(cls) -> Self: + """A factory method that returns a :class:`Colour` representing the new Discord 'Ash' theme background. + + .. colour:: #393a41 + + .. versionadded:: 2.4 + """ + return cls(0x393A41) + + @classmethod + def discord_dark(cls) -> Self: + """A factory method that returns a :class:`Colour` representing the new Discord 'Dark' theme background. + + .. colour:: #242429 + + .. versionadded:: 2.4 + """ + return cls(0x242429) + + @classmethod + def onyx(cls) -> Self: + """A factory method that returns a :class:`Colour` representing the new Discord 'Onyx' theme background. + + .. colour:: #131416 + + .. versionadded:: 2.4 + """ + return cls(0x131416) + -Color = Colour +Color = Colour \ No newline at end of file