Bot disconects from ws. Debug attached

I started debuging on my discord bot since it often likes to just act dead, but the code is running https://paste.gg/p/anonymous/286a2b5241654b408e7f96abcfffd93e It often stays like this for a multiple hours until it restarts somehow or i restart it. Any idea what could it be?
6 Replies
d.js toolkit
d.js toolkit2mo 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!
DepstR
DepstR2mo ago
Node: v18.20.2 Djs: 14.6.0
Kevinnnn
Kevinnnn2mo ago
Update your djs version, v14.8.0 and below are deprecated, latest version is 14.14.1
DepstR
DepstR2mo ago
And is it because of that? I will update either way ofc.. Just curius
Kevinnnn
Kevinnnn2mo ago
Most likely, there are some breaking changes caused by the API so all releases before 14.8.0 are semi broken
DepstR
DepstR2mo ago
Oh okie. I will update and will give update. Thanks a lot!