aboutsummaryrefslogtreecommitdiff
path: root/discord/endpoints.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-13 01:42:15 -0500
committerRapptz <[email protected]>2015-12-13 02:12:06 -0500
commit29ea58d0080e0e6f4931fa9cb7fc4c04a2b248df (patch)
treeed8d4bb42df6ac50aa489428a00a1b3497726077 /discord/endpoints.py
parentClient.login no longer calls resp.json() (diff)
downloaddiscord.py-29ea58d0080e0e6f4931fa9cb7fc4c04a2b248df.tar.xz
discord.py-29ea58d0080e0e6f4931fa9cb7fc4c04a2b248df.zip
Implement cache of login credentials.
Also add endpoints.ME to easily access the @me endpoint.
Diffstat (limited to 'discord/endpoints.py')
-rw-r--r--discord/endpoints.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/endpoints.py b/discord/endpoints.py
index 7266b775..d3e7f197 100644
--- a/discord/endpoints.py
+++ b/discord/endpoints.py
@@ -28,6 +28,7 @@ BASE = 'https://discordapp.com'
API_BASE = BASE + '/api'
GATEWAY = API_BASE + '/gateway'
USERS = API_BASE + '/users'
+ME = USERS + '/@me'
REGISTER = API_BASE + '/auth/register'
LOGIN = API_BASE + '/auth/login'
LOGOUT = API_BASE + '/auth/logout'