mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-28 03:52:57 +00:00
Different method of upgrading user instances
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user