Skip to content

Commit

Permalink
feat: add Colour.light_embed and .dark_embed
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftinv committed Sep 3, 2023
1 parent d037a74 commit 1c2a2fb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions disnake/colour.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,5 +304,23 @@ def yellow(cls) -> Self:
"""
return cls(0xFEE75C)

@classmethod
def light_embed(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0xF2F3F5``.
This matches the embed background colour on Discord's light theme.
.. versionadded:: 2.10
"""
return cls(0xF2F3F5)

@classmethod
def dark_embed(cls) -> Self:
"""A factory method that returns a :class:`Colour` with a value of ``0x2B2D31``.
This matches the embed background colour on Discord's dark theme.
.. versionadded:: 2.10
"""
return cls(0x2B2D31)


Color = Colour

0 comments on commit 1c2a2fb

Please sign in to comment.