Skip to content

Commit

Permalink
Add dark_embed and light_embed to Colour
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaster3558 committed Feb 11, 2023
1 parent e13c1d3 commit 9562a96
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions discord/colour.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,5 +397,21 @@ def yellow(cls) -> Self:
"""
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

0 comments on commit 9562a96

Please sign in to comment.