@satorijs/adapter-discord 3.6.1 → 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -2
- package/lib/index.js.map +2 -2
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -1609,10 +1609,10 @@ var WsClient = class extends import_satori4.Adapter.WsClient {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
async prepare() {
|
|
1611
1611
|
if (this._resumeUrl) {
|
|
1612
|
-
return this.bot.http.ws(this._resumeUrl);
|
|
1612
|
+
return this.bot.http.ws(this._resumeUrl + "/?v=10&encoding=json");
|
|
1613
1613
|
}
|
|
1614
1614
|
const { url } = await this.bot.internal.getGatewayBot();
|
|
1615
|
-
return this.bot.http.ws(url);
|
|
1615
|
+
return this.bot.http.ws(url + "/?v=10&encoding=json");
|
|
1616
1616
|
}
|
|
1617
1617
|
heartbeat() {
|
|
1618
1618
|
logger2.debug(`heartbeat d ${this._d}`);
|