Browse Source
Add Colour.brand_green and Colour.brand_red
pull/7472/head
Ryan
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
16 additions and
0 deletions
-
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``.""" |
|
|
|