@satorijs/adapter-discord 3.9.0 → 3.9.1
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 +0 -2
- package/lib/index.js.map +2 -2
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -1876,7 +1876,6 @@ var _WsClient = class _WsClient extends import_satori4.Adapter.WsClient {
|
|
|
1876
1876
|
return;
|
|
1877
1877
|
this._sessionId = "";
|
|
1878
1878
|
logger2.warn("offline: invalid session");
|
|
1879
|
-
this.bot.offline();
|
|
1880
1879
|
(_a = this.bot.socket) == null ? void 0 : _a.close();
|
|
1881
1880
|
}
|
|
1882
1881
|
if (parsed.op === Gateway.Opcode.DISPATCH) {
|
|
@@ -1897,7 +1896,6 @@ var _WsClient = class _WsClient extends import_satori4.Adapter.WsClient {
|
|
|
1897
1896
|
this.bot.dispatch(session);
|
|
1898
1897
|
}
|
|
1899
1898
|
if (parsed.op === Gateway.Opcode.RECONNECT) {
|
|
1900
|
-
this.bot.offline();
|
|
1901
1899
|
logger2.warn("offline: discord request reconnect");
|
|
1902
1900
|
(_b = this.bot.socket) == null ? void 0 : _b.close();
|
|
1903
1901
|
}
|