From c6a6c6af85e01fb16988a82ecc8d37a72622615e Mon Sep 17 00:00:00 2001 From: Ryan <61157623+ErrorNoInternet@users.noreply.github.com> Date: Tue, 24 Aug 2021 19:02:36 +0800 Subject: [PATCH] Add Colour.brand_green and Colour.brand_red --- discord/colour.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/discord/colour.py b/discord/colour.py index 241c1e0eb..2833e6225 100644 --- a/discord/colour.py +++ b/discord/colour.py @@ -171,6 +171,14 @@ class Colour: """A factory method that returns a :class:`Colour` with a value of ``0x11806a``.""" return cls(0x11806a) + @classmethod + def brand_green(cls: Type[CT]) -> CT: + """A factory method that returns a :class:`Colour` with a value of ``0x57F287``. + + .. versionadded:: 2.0 + """ + return cls(0x57F287) + @classmethod def green(cls: Type[CT]) -> CT: """A factory method that returns a :class:`Colour` with a value of ``0x2ecc71``.""" @@ -231,6 +239,14 @@ class Colour: """A factory method that returns a :class:`Colour` with a value of ``0xa84300``.""" return cls(0xa84300) + @classmethod + def brand_red(cls: Type[CT]) -> CT: + """A factory method that returns a :class:`Colour` with a value of ``0xED4245``. + + .. versionadded:: 2.0 + """ + return cls(0xED4245) + @classmethod def red(cls: Type[CT]) -> CT: """A factory method that returns a :class:`Colour` with a value of ``0xe74c3c``."""