Add Client.get_user_info to retrieve a User from ID.

This commit is contained in:
Rapptz committed 2016-09-25 04:40:31 -04:00
1 parent 7a2b944b72
commit 96ca7cafee
2 files changed
+30

No files matched your search

+3
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_())