Add discord.Colour classmethod dark_theme

This commit is contained in:
BluePhoenixGame 2020-09-09 06:52:19 +02:00 committed by GitHub
parent a309088ae4
commit 4b18238ade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,4 +235,13 @@ class Colour:
"""A factory method that returns a :class:`Colour` with a value of ``0x99aab5``."""
return cls(0x99aab5)
@classmethod
def dark_theme(cls):
"""A factory method that returns a :class:'Colour' with a value of ``0x36393F``.
Will appear transparent on Discord's dark theme and be the text colour on Discord's light theme.
.. versionadded:: 1.5
"""
return cls(0x36393F)
Color = Colour