From ddd3fd0a3dcce2d48b2df26377e136f2310809b3 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 13 Jul 2016 00:10:16 -0400 Subject: Begin working on gateway v6 changes. The first batch of changes are related to channel types and group direct messages. Support these first so READY begins parsing. --- discord/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discord/http.py') diff --git a/discord/http.py b/discord/http.py index 192337fe..fabcafd6 100644 --- a/discord/http.py +++ b/discord/http.py @@ -53,7 +53,7 @@ class HTTPClient: """Represents an HTTP client sending HTTP requests to the Discord API.""" BASE = 'https://discordapp.com' - API_BASE = BASE + '/api' + API_BASE = BASE + '/api/v6' GATEWAY = API_BASE + '/gateway' USERS = API_BASE + '/users' ME = USERS + '/@me' @@ -500,4 +500,4 @@ class HTTPClient: data = yield from self.get(self.GATEWAY, bucket=_func_()) except HTTPException as e: raise GatewayNotFound() from e - return data.get('url') + '?encoding=json&v=5' + return data.get('url') + '?encoding=json&v=6' -- cgit v1.2.3