aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorRyan <[email protected]>2021-08-24 19:02:36 +0800
committerGitHub <[email protected]>2021-08-24 07:02:36 -0400
commitc6a6c6af85e01fb16988a82ecc8d37a72622615e (patch)
treecc1eec0b8aab4155c2b0261fa8d9cc942cb14511 /discord
parentTypehint Colour.__init__ parameter (diff)
downloaddiscord.py-c6a6c6af85e01fb16988a82ecc8d37a72622615e.tar.xz
discord.py-c6a6c6af85e01fb16988a82ecc8d37a72622615e.zip
Add Colour.brand_green and Colour.brand_red
Diffstat (limited to 'discord')
-rw-r--r--discord/colour.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/discord/colour.py b/discord/colour.py
index 241c1e0e..2833e622 100644
--- a/discord/colour.py
+++ b/discord/colour.py
@@ -172,6 +172,14 @@ class Colour:
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``."""
return cls(0x2ecc71)
@@ -232,6 +240,14 @@ class Colour:
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``."""
return cls(0xe74c3c)