mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
Revert "add auth session change handling" (#1342)
* Revert "User settings (#1337)" This reverts commit801633b970. * Revert "add auth session change handling (#1339)" This reverts commit5d85de0883.
This commit is contained in:
@@ -72,16 +72,6 @@ class WebSocketPacketManager {
|
||||
}
|
||||
|
||||
handle(packet) {
|
||||
if (packet.t === Constants.WSEvents.AUTH_SESSION_CHANGE) {
|
||||
if (packet.d.new_token) {
|
||||
this.client.token = packet.d.new_token;
|
||||
this.ws._sendResume();
|
||||
} else {
|
||||
this.client.destroy();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (packet.op === Constants.OPCodes.RECONNECT) {
|
||||
this.setSequence(packet.s);
|
||||
this.ws.tryReconnect();
|
||||
|
||||
Reference in New Issue
Block a user