aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-05-04 08:23:38 -0400
committerRapptz <[email protected]>2021-06-08 07:26:22 -0400
commit72c66a17060d662bcead9ad6db91374e38fafbc1 (patch)
tree38ebf9fa6003e8d9942dcf0e22ffa5c41ae357cb
parentUpdate thread typings and payloads to match documentation (diff)
downloaddiscord.py-72c66a17060d662bcead9ad6db91374e38fafbc1.tar.xz
discord.py-72c66a17060d662bcead9ad6db91374e38fafbc1.zip
Bump gateway API to v9
-rw-r--r--discord/http.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/discord/http.py b/discord/http.py
index a40d9a5e..d96f1f30 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -1524,9 +1524,9 @@ class HTTPClient:
except HTTPException as exc:
raise GatewayNotFound() from exc
if zlib:
- value = '{0}?encoding={1}&v=8&compress=zlib-stream'
+ value = '{0}?encoding={1}&v=9&compress=zlib-stream'
else:
- value = '{0}?encoding={1}&v=8'
+ value = '{0}?encoding={1}&v=9'
return value.format(data['url'], encoding)
async def get_bot_gateway(self, *, encoding='json', zlib=True):
@@ -1536,9 +1536,9 @@ class HTTPClient:
raise GatewayNotFound() from exc
if zlib:
- value = '{0}?encoding={1}&v=8&compress=zlib-stream'
+ value = '{0}?encoding={1}&v=9&compress=zlib-stream'
else:
- value = '{0}?encoding={1}&v=8'
+ value = '{0}?encoding={1}&v=9'
return data['shards'], value.format(data['url'], encoding)
def get_user(self, user_id):