Shard Error

[WS => Shard 0] Heartbeat acknowledged, latency of 94ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 93ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 94ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 94ms.
[WS => Shard 0] Destroying shard
Reason: Told to reconnect by Discord
Code: 4200
Recover: Resume
[WS => Shard 0] Connection status during destroy
Needs closing: true
Ready state: 1
[WS => Shard 0] Connecting to wss://gateway-us-east1-d.discord.gg?v=10&encoding=json
[WS => Shard 0] Waiting for event hello for 60000ms
[WS => Shard 0] Preparing first heartbeat of the connection with a jitter of 0.40551446968879024; waiting 16727ms
[WS => Shard 0] Resuming session
resume url: wss://gateway-us-east1-d.discord.gg
sequence: 6084
shard id: 0
[WS => Shard 0] Resumed and replayed 1 events
[WS => Shard 0] First heartbeat sent, starting to beat every 41250ms
[WS => Shard 0] Heartbeat acknowledged, latency of 109ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 94ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 110ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 94ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 94ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 94ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 93ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 94ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 94ms.
[WS => Shard 0] Destroying shard
Reason: Told to reconnect by Discord
Code: 4200
Recover: Resume
[WS => Shard 0] Connection status during destroy
Needs closing: true
Ready state: 1
[WS => Shard 0] Connecting to wss://gateway-us-east1-d.discord.gg?v=10&encoding=json
[WS => Shard 0] Waiting for event hello for 60000ms
[WS => Shard 0] Preparing first heartbeat of the connection with a jitter of 0.40551446968879024; waiting 16727ms
[WS => Shard 0] Resuming session
resume url: wss://gateway-us-east1-d.discord.gg
sequence: 6084
shard id: 0
[WS => Shard 0] Resumed and replayed 1 events
[WS => Shard 0] First heartbeat sent, starting to beat every 41250ms
[WS => Shard 0] Heartbeat acknowledged, latency of 109ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 94ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 110ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 94ms.
[WS => Shard 0] Heartbeat acknowledged, latency of 94ms.
Any idea cause of that?
5 Replies
d.js toolkit
d.js toolkit5mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
!Delta!
!Delta!OP5mo ago
The bot goes offline but nothing no cmd Any idea on that? node.js proccess run too Yeah It goes offline in the members and nothing work and i restart that it goes online Yeah let me try and i will revert btw TypeError: Cannot read properties of undefined (reading 'on') i add that on ready event. Lets wait and see it happend again but no return yeah i even add
client.on('disconnect', () => {
console.log('Bot disconnected');
});

client.on('reconnecting', () => {
console.log('Bot reconnecting...');
});

client.on('resume', () => {
console.log('Bot resumed connection');
});
client.on('disconnect', () => {
console.log('Bot disconnected');
});

client.on('reconnecting', () => {
console.log('Bot reconnecting...');
});

client.on('resume', () => {
console.log('Bot resumed connection');
});
d.js docs
d.js docs5mo ago
:event: (event) Client#shardResume @14.15.3 Emitted when a shard resumes successfully.
!Delta!
!Delta!OP5mo ago
No description
!Delta!
!Delta!OP5mo ago
if i add something like that
setInterval(async() => {
if (!delta.ws.status) {
console.error("Bot disconnected! Attempting to reconnect...");
await delta.login(config.token);
delta.user.setStatus('dnd')
}
}, 30000);
setInterval(async() => {
if (!delta.ws.status) {
console.error("Bot disconnected! Attempting to reconnect...");
await delta.login(config.token);
delta.user.setStatus('dnd')
}
}, 30000);
will resolve the issue or it will create a bigger one? Yeah i know that but im confused I tried to reset the token just in case But i dont think that will resolve the issue when i add that without login it go dnd status Its goes offline after some minutes Meanwhile i done the reset token and nothing happend yet i still monitoring that Ik that. Any idea how i can resolve the issue? Perfect i will return with the results Cause the spam. What we looking for? The only discovery i made since now is that it keep return heartbeats, no disconnection or reconnectiok error but bot go offlije
Want results from more Discord servers?
Add your server