Skip to content

Commit

Permalink
Uppercase color codes in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Guddi8 authored Nov 21, 2022
1 parent 5007808 commit 66d8500
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions discord/colour.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def from_str(cls, value: str) -> Self:
- ``rgb(<number>, <number>, <number>)``
Like CSS, ``<number>`` can be either 0-255 or 0-100% and ``<hex>`` can be
either a 6 digit hex number or a 3 digit hex shortcut (e.g. #fff).
either a 6 digit hex number or a 3 digit hex shortcut (e.g. #FFF).
.. versionadded:: 2.0
Expand Down Expand Up @@ -235,12 +235,12 @@ def random(cls, *, seed: Optional[Union[int, str, float, bytes, bytearray]] = No

@classmethod
def teal(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x1abc9c``."""
"""A factory method that returns a :class:`Colour` with a value of ``0x1ABC9C``."""
return cls(0x1ABC9C)

@classmethod
def dark_teal(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x11806a``."""
"""A factory method that returns a :class:`Colour` with a value of ``0x11806A``."""
return cls(0x11806A)

@classmethod
Expand All @@ -253,17 +253,17 @@ def brand_green(cls) -> Self:

@classmethod
def green(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x2ecc71``."""
"""A factory method that returns a :class:`Colour` with a value of ``0x2ECC71``."""
return cls(0x2ECC71)

@classmethod
def dark_green(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x1f8b4c``."""
"""A factory method that returns a :class:`Colour` with a value of ``0x1F8B4C``."""
return cls(0x1F8B4C)

@classmethod
def blue(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x3498db``."""
"""A factory method that returns a :class:`Colour` with a value of ``0x3498DB``."""
return cls(0x3498DB)

@classmethod
Expand All @@ -273,42 +273,42 @@ def dark_blue(cls) -> Self:

@classmethod
def purple(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x9b59b6``."""
"""A factory method that returns a :class:`Colour` with a value of ``0x9B59B6``."""
return cls(0x9B59B6)

@classmethod
def dark_purple(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x71368a``."""
"""A factory method that returns a :class:`Colour` with a value of ``0x71368A``."""
return cls(0x71368A)

@classmethod
def magenta(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0xe91e63``."""
"""A factory method that returns a :class:`Colour` with a value of ``0xE91E63``."""
return cls(0xE91E63)

@classmethod
def dark_magenta(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0xad1457``."""
"""A factory method that returns a :class:`Colour` with a value of ``0xAD1457``."""
return cls(0xAD1457)

@classmethod
def gold(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0xf1c40f``."""
"""A factory method that returns a :class:`Colour` with a value of ``0xF1C40F``."""
return cls(0xF1C40F)

@classmethod
def dark_gold(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0xc27c0e``."""
"""A factory method that returns a :class:`Colour` with a value of ``0xC27C0E``."""
return cls(0xC27C0E)

@classmethod
def orange(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0xe67e22``."""
"""A factory method that returns a :class:`Colour` with a value of ``0xE67E22``."""
return cls(0xE67E22)

@classmethod
def dark_orange(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0xa84300``."""
"""A factory method that returns a :class:`Colour` with a value of ``0xA84300``."""
return cls(0xA84300)

@classmethod
Expand All @@ -321,17 +321,17 @@ def brand_red(cls) -> Self:

@classmethod
def red(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0xe74c3c``."""
"""A factory method that returns a :class:`Colour` with a value of ``0xE74C3C``."""
return cls(0xE74C3C)

@classmethod
def dark_red(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x992d22``."""
"""A factory method that returns a :class:`Colour` with a value of ``0x992D22``."""
return cls(0x992D22)

@classmethod
def lighter_grey(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x95a5a6``."""
"""A factory method that returns a :class:`Colour` with a value of ``0x95A5A6``."""
return cls(0x95A5A6)

lighter_gray = lighter_grey
Expand All @@ -345,21 +345,21 @@ def dark_grey(cls) -> Self:

@classmethod
def light_grey(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x979c9f``."""
"""A factory method that returns a :class:`Colour` with a value of ``0x979C9F``."""
return cls(0x979C9F)

light_gray = light_grey

@classmethod
def darker_grey(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x546e7a``."""
"""A factory method that returns a :class:`Colour` with a value of ``0x546E7A``."""
return cls(0x546E7A)

darker_gray = darker_grey

@classmethod
def og_blurple(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x7289da``."""
"""A factory method that returns a :class:`Colour` with a value of ``0x7289DA``."""
return cls(0x7289DA)

@classmethod
Expand All @@ -369,7 +369,7 @@ def blurple(cls) -> Self:

@classmethod
def greyple(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x99aab5``."""
"""A factory method that returns a :class:`Colour` with a value of ``0x99AAB5``."""
return cls(0x99AAB5)

@classmethod
Expand Down

0 comments on commit 66d8500

Please sign in to comment.