Different method of upgrading user instances

This commit is contained in:
Rapptz
2019-07-10 01:23:38 -04:00
parent e75c248a9a
commit 5c1b239b47
3 changed files with 13 additions and 5 deletions

View File

@ -112,6 +112,15 @@ class BaseUser(_BaseUser):
return self
def _to_minimal_user_json(self):
return {
'name': self.name,
'id': self.id,
'avatar': self.avatar,
'discriminator': self.discriminator,
'bot': self.bot,
}
@property
def avatar_url(self):
"""Returns an :class:`Asset` for the avatar the user has.