Discord bot keeps going offline for no reason

There are no errors in the logs, I'm using PM2 so I don't think its anything related to the bot not receiving requests, I'm so lost right now in terms of whats going on Bot is in 1500 servers, sharded Using discordjs v14
5 Replies
d.js toolkit
d.js toolkit8mo 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!
Spoder
SpoderOP8mo ago
I'm not sure what code to show due to the fact that I don't see any erorrs Nope Both The bot user itself goes offline, and then people cant use the bot Yeah It just shows when it comes online and what shard its on I could probably log more I just don't know what to log I also log errors on interaction create But if there was an error, the bot would restart due to pm2 no? At least thats what it does for me
d.js docs
d.js docs8mo ago
Please add the following code to your code base outside of any other event listeners and provide the full log output relevant to your issue.
client
.on("debug", console.log)
.on("warn", console.log)
client
.on("debug", console.log)
.on("warn", console.log)
- Note: if you initialize your Client as bot or other identifiers you need to use these instead of client - If the output is too long to post consider using a bin instead: gist | paste.gg | sourceb.in | hastebin
Spoder
SpoderOP8mo ago
Ill log and then come back if I encounter any issues ty for the help Still no logs went offline again
kickas__
kickas__8mo ago
What are you using? Nevermind
Want results from more Discord servers?
Add your server