aboutsummaryrefslogtreecommitdiff
path: root/discord/endpoints.py
diff options
context:
space:
mode:
authorHornwitser <[email protected]>2015-09-27 17:45:15 +0200
committerHornwitser <[email protected]>2015-10-06 19:09:16 +0200
commitd044d7b7815a5b98032ff45c19a25a97dd8b604a (patch)
tree075dd06c089a6ede896880ec4c2a4b899a13f214 /discord/endpoints.py
parentReconnect when WebSocket dies (diff)
downloaddiscord.py-d044d7b7815a5b98032ff45c19a25a97dd8b604a.tar.xz
discord.py-d044d7b7815a5b98032ff45c19a25a97dd8b604a.zip
Add client register API
When clicking on an invite link without having a Discord account it's possible to create an unclaimed account for joining the conversation quickly. Add register() method to Client that performs and invite based registration of an unclaimed account.
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 6be7e01c..7266b775 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'
+REGISTER = API_BASE + '/auth/register'
LOGIN = API_BASE + '/auth/login'
LOGOUT = API_BASE + '/auth/logout'
SERVERS = API_BASE + '/guilds'