Browse Source

Add more detailed description to accent_colour

pull/8036/head
invalid-user 3 years ago
committed by GitHub
parent
commit
8eb2e19c41
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      discord/user.py

6
discord/user.py

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

Loading…
Cancel
Save