diff options
| author | Rapptz <[email protected]> | 2017-01-24 21:55:23 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-24 22:00:27 -0500 |
| commit | 02f30f21c4a9f4dfb3264de74590c3327878cbac (patch) | |
| tree | b91b543734dc8d8033c34455811d6d430bc56eea /discord/http.py | |
| parent | Add option to disable auto member chunking. (diff) | |
| download | discord.py-02f30f21c4a9f4dfb3264de74590c3327878cbac.tar.xz discord.py-02f30f21c4a9f4dfb3264de74590c3327878cbac.zip | |
Implement User.profile coroutine to get a user's profile.
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/http.py b/discord/http.py index 42cf14e5..2750a792 100644 --- a/discord/http.py +++ b/discord/http.py @@ -666,3 +666,6 @@ class HTTPClient: def get_user_info(self, user_id): return self.request(Route('GET', '/users/{user_id}', user_id=user_id)) + + def get_user_profile(self, user_id): + return self.request(Route('GET', '/users/{user_id}/profile', user_id=user_id)) |