Fix User.accent_color incorrect attribute access

This commit is contained in:
nickofolas 2021-07-30 20:30:54 -05:00 committed by GitHub
parent 608e3b5b6c
commit 06a371e80a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,9 +157,9 @@ class BaseUser(_UserTag):
This information is only available via :meth:`Client.fetch_user`.
"""
if self._accent_color is None:
if self._accent_colour is None:
return None
return Colour(self._accent_color)
return Colour(self._accent_colour)
@property
def accent_color(self) -> Optional[Colour]: