add a color

This commit is contained in:
iDutchy 2020-11-04 19:51:07 -06:00
parent 188b69c097
commit ae0f11ce53
3 changed files with 9 additions and 0 deletions

View File

@ -29,6 +29,7 @@ Custom Features
- Added support for ``str()`` to ``discord.Message``. This will return the message content
- Added ``Guild.try_member``
- Added ``Context.clean_prefix``
- Added ``Color.nitro_booster``
Key Features
-------------

View File

@ -336,6 +336,13 @@ class Colour:
"""A factory method that returns a :class:`Colour` with a value of ``0xff7043``."""
return cls(0xff7043)
@classmethod
def nitro_booster(cls):
"""A factory method that returns a :class:`Colour` with a value of ``0xf47fff``.
.. versionadded:: 1.5.1.5"""
return cls(0xf47fff)
@classmethod
def rust(cls):
"""A factory method that returns a :class:`Colour` with a value of ``0xa83c09``."""

View File

@ -34,6 +34,7 @@ Custom Features
- Added support for ``str()`` to ``discord.Message``. This will return the message content
- Added ``Guild.try_member``
- Added ``Context.clean_prefix``
- Added ``Color.nitro_booster``
Features
--------