Add more detailed description to accent_colour

This commit is contained in:
invalid-user 2022-05-13 10:06:28 +08:00 committed by GitHub
parent f780b0a283
commit 8eb2e19c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,6 +193,9 @@ class BaseUser(_UserTag):
def accent_colour(self) -> Optional[Colour]:
"""Optional[:class:`Colour`]: Returns the user's accent colour, if applicable.
A user's accent colour is only shown if they do not have a banner.
This will only be available if the user explicitly sets a colour.
There is an alias for this named :attr:`accent_color`.
.. versionadded:: 2.0
@ -209,6 +212,9 @@ class BaseUser(_UserTag):
def accent_color(self) -> Optional[Colour]:
"""Optional[:class:`Colour`]: Returns the user's accent color, if applicable.
A user's accent color is only shown if they do not have a banner.
This will only be available if the user explicitly sets a color.
There is an alias for this named :attr:`accent_colour`.
.. versionadded:: 2.0