Add Client.get_user_info to retrieve a User from ID.

This commit is contained in:
Rapptz
2016-09-25 04:40:31 -04:00
parent 7a2b944b72
commit 96ca7cafee
2 changed files with 30 additions and 0 deletions

View File

@ -515,3 +515,6 @@ class HTTPClient:
except HTTPException as e:
raise GatewayNotFound() from e
return data.get('url') + '?encoding=json&v=6'
def get_user_info(self, user_id):
return self.get('{0.USERS}/{1}'.format(self, user_id), bucket=_func_())