Add dark_embed and light_embed to Colour

This commit is contained in:
TheMaster3558 2023-02-10 16:32:00 -08:00 committed by GitHub
parent e13c1d32b3
commit 9562a9683a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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