How to automatically set status?

As in, when I first setup discord.js, it would make my bots status "online", when the code was running, and "offline" when it wasn't. How can I return to that behavior? (I used client.user.setStatus(PresenceUpdateStatus.Online); once, and it never went offline again).
6 Replies
d.js toolkit
d.js toolkit3mo 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! - Marked as resolved by OP
ChilledGaming
ChilledGamingOP3mo ago
node v22.09
treble/luna
treble/luna3mo ago
if your code isnt running your bot will show as offline as easy as that
ChilledGaming
ChilledGamingOP3mo ago
yeah, but that just doesn't happen tho
treble/luna
treble/luna3mo ago
Takes a short while
ChilledGaming
ChilledGamingOP3mo ago
bruh, im sorry, it did happen, I swear I tested it many times before making this thread. Yall probabli thinking im stupid lol. (I am stupid)
Want results from more Discord servers?
Add your server