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.
This commit is contained in:
Rapptz committed 2016-07-13 00:10:16 -04:00
1 parent e977bddc1f
commit ddd3fd0a3d
6 files changed
+77 -21

No files matched your search

+2 -2
View File
@@ -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'