Browse Source

Add support for new pink default avatars

pull/10109/head
Rapptz 2 years ago
committed by dolfies
parent
commit
ecbbb5dfc3
  1. 10
      discord/colour.py
  2. 6
      docs/api.rst

10
discord/colour.py

@ -509,5 +509,15 @@ class Colour:
"""
return cls(0xEEEFF1)
@classmethod
def pink(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0xEB459F``.
.. colour:: #EB459F
.. versionadded:: 2.3
"""
return cls(0xEB459F)
Color = Colour

6
docs/api.rst

@ -3621,6 +3621,12 @@ of :class:`enum.Enum`.
Represents the default avatar with the color red.
See also :attr:`Colour.red`
.. attribute:: pink
Represents the default avatar with the color pink.
See also :attr:`Colour.pink`
.. versionadded:: 2.3
.. attribute:: pink

Loading…
Cancel
Save