aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-09-25 04:40:31 -0400
committerRapptz <[email protected]>2016-09-25 04:40:31 -0400
commit96ca7cafeefb388b898fd8ed9c7279069b71b013 (patch)
tree24a14eaa91c3262668ec641f5df5918c3f2bc03d /discord/http.py
parentFix 404'd FAQ links. (diff)
downloaddiscord.py-96ca7cafeefb388b898fd8ed9c7279069b71b013.tar.xz
discord.py-96ca7cafeefb388b898fd8ed9c7279069b71b013.zip
Add Client.get_user_info to retrieve a User from ID.
Diffstat (limited to 'discord/http.py')
-rw-r--r--discord/http.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/http.py b/discord/http.py
index c7ffa4c0..dd7c1f43 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -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_())