Add per-guild member avatar support

Fix #7054
This commit is contained in:
JustAnyone
2021-08-22 13:49:42 +03:00
committed by GitHub
parent 9db8698748
commit 91652e3b60
3 changed files with 49 additions and 0 deletions

View File

@ -238,6 +238,18 @@ class BaseUser(_UserTag):
"""
return self.name
@property
def display_avatar(self) -> Asset:
""":class:`Asset`: Returns the user's display avatar.
For regular users this is just their avatar, but
if they have a guild specific avatar then that
is returned instead.
.. versionadded:: 2.0
"""
return self.avatar
def mentioned_in(self, message: Message) -> bool:
"""Checks if the user is mentioned in the specified message.