Provided token: ODEzMzY0MzU0OTgzNjU3NDcy.YDOOlQ.*************************** Preparing to connect to the gateway... [WS => Manager] Fetched Gateway Information URL: wss://gateway.discord.gg Recommended Shards: 1 [WS => Manager] Session Limit Information Total: 1000 Remaining: 979 [WS => Manager] Spawning shards: 0 [WS => Shard 0] [CONNECT] Gateway : wss://gateway.discord.gg/ Version : 9 Encoding : json Compression: none [WS => Shard 0] Setting a HELLO timeout for 20s. [WS => Shard 0] [CONNECTED] Took 217ms [WS => Shard 0] Clearing the HELLO timeout. [WS => Shard 0] Setting a heartbeat interval for 41250ms. [WS => Shard 0] [IDENTIFY] Shard 0/1 with intents: 1 [WS => Shard 0] [READY] Session ba5ac97474142f54343ccac7aef754d5. [WS => Shard 0] [ReadyHeartbeat] Sending a heartbeat. [WS => Shard 0] Shard received all its guilds. Marking as fully ready. ready [WS => Shard 0] Heartbeat acknowledged, latency of 116ms. [WS => Shard 0] [HeartbeatTimer] Sending a heartbeat. [WS => Shard 0] [HeartbeatTimer] Didn't receive a heartbeat ack last time, assuming zombie connection. Destroying and reconnecting. Status : READY Sequence : 2 Connection State: OPEN [WS => Shard 0] [DESTROY] Close Code : 4009 Reset : true Emit DESTROYED: true [WS => Shard 0] Clearing the heartbeat interval. [WS => Shard 0] [CLOSE] Event Code: 1006 Clean : false Reason : [WS => Shard 0] [CONNECT] Gateway : wss://gateway.discord.gg/ Version : 9 Encoding : json Compression: none [WS => Shard 0] Setting a HELLO timeout for 20s. [WS => Shard 0] [CLOSE] Event Code: 1006 Clean : false Reason : [WS => Shard 0] Clearing the HELLO timeout. [WS => Shard 0] WS State: CLOSED [WS => Shard 0] Failed to connect to the gateway, requeueing... [WS => Manager] Shard Queue Size: 1; continuing in 5 seconds... [WS => Shard 0] [CONNECT] Gateway : wss://gateway.discord.gg/ Version : 9 Encoding : json Compression: none [WS => Shard 0] Setting a HELLO timeout for 20s. [WS => Shard 0] Did not receive HELLO in time. Destroying and connecting again. [WS => Shard 0] [DESTROY] Close Code : 4009 Reset : true Emit DESTROYED: true [WS => Shard 0] Clearing the HELLO timeout. [WS => Shard 0] WS State: CONNECTING [WS => Shard 0] Shard was destroyed but no WebSocket connection was present! Reconnecting... node:events:504 throw er; // Unhandled 'error' event ^ Error: WebSocket was closed before the connection was established at WebSocket.close (/home/peter/tmp/node_modules/ws/lib/websocket.js:285:14) at WebSocketShard.destroy (/home/peter/tmp/node_modules/discord.js/src/client/websocket/WebSocketShard.js:728:27) at Timeout. (/home/peter/tmp/node_modules/discord.js/src/client/websocket/WebSocketShard.js:522:12) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7) Emitted 'error' event on WebSocket instance at: at emitErrorAndClose (/home/peter/tmp/node_modules/ws/lib/websocket.js:984:13) at processTicksAndRejections (node:internal/process/task_queues:83:21)