Browse Source

Add dark_embed and light_embed to Colour

pull/9231/head
TheMaster3558 2 years ago
committed by GitHub
parent
commit
9562a9683a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      discord/colour.py

16
discord/colour.py

@ -397,5 +397,21 @@ class Colour:
"""
return cls(0xFEE75C)
@classmethod
def dark_embed(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x2F3136``.
.. versionadded:: 2.2
"""
return cls(0x2F3136)
@classmethod
def light_embed(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0xF2F3F5``.
.. versionadded:: 2.2
"""
return cls(0xF2F3F5)
Color = Colour

Loading…
Cancel
Save