mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Bump gateway API to v9
This commit is contained in:
parent
4a4e73ec14
commit
72c66a1706
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user