File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -81,9 +81,9 @@ async def get_gateway(self) -> str:
81
81
Route ("GET" , "/gateway" )
82
82
) # typehinting Any because pycharm yells
83
83
try :
84
- _url = f'{ url ["url" ]} ?v=10&encoding=json'
84
+ _url = f'{ url ["url" ]} ?v=10&encoding=json&compress=zlib-stream '
85
85
except TypeError : # seen a few times
86
- _url = "wss://gateway.discord.gg?v=10&encoding=json"
86
+ _url = "wss://gateway.discord.gg?v=10&encoding=json&compress=zlib-stream "
87
87
return _url
88
88
89
89
async def get_bot_gateway (self ) -> Tuple [int , str ]:
@@ -95,9 +95,9 @@ async def get_bot_gateway(self) -> Tuple[int, str]:
95
95
96
96
data : Any = await self ._req .request (Route ("GET" , "/gateway/bot" ))
97
97
try :
98
- _url = f'{ data ["url" ]} ?v=10&encoding=json'
98
+ _url = f'{ data ["url" ]} ?v=10&encoding=json&compress=zlib-stream '
99
99
except TypeError : # seen a few times
100
- _url = "wss://gateway.discord.gg?v=10&encoding=json"
100
+ _url = "wss://gateway.discord.gg?v=10&encoding=json&compress=zlib-stream "
101
101
return data ["shards" ], _url
102
102
103
103
async def login (self ) -> Optional [dict ]:
You can’t perform that action at this time.
0 commit comments