diff options
| author | Rapptz <[email protected]> | 2016-07-13 00:10:16 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-07-13 00:10:16 -0400 |
| commit | ddd3fd0a3dcce2d48b2df26377e136f2310809b3 (patch) | |
| tree | 1db729a099756f89c1e36e448bb05449593d0736 /discord/http.py | |
| parent | Add stderr arg to create_ffmpeg_player (diff) | |
| download | discord.py-ddd3fd0a3dcce2d48b2df26377e136f2310809b3.tar.xz discord.py-ddd3fd0a3dcce2d48b2df26377e136f2310809b3.zip | |
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.
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 4 |
1 files changed, 2 insertions, 2 deletions
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' |