.setActivity() stops events from firing

I know, I'm really confused too. On my windows machine everything works perfectly, but on my Linux VPS I've pinpointed (through commenting and uncommenting) the following line of code disables all of my .on and .once event calls:
await client.user.setActivity("/help | " + hours + ":" + minutes + " left", {type: ActivityType.Listening})
await client.user.setActivity("/help | " + hours + ":" + minutes + " left", {type: ActivityType.Listening})
Only that line is commented. If I uncomment it, it is run on the ready event and prevents any other events from firing henceforth. ..Any idea why?
4 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Spookadia
SpookadiaOP3y ago
Node version 17.9.0 Discord.js 14.3.0 No errors, just no events being received
d.js docs
d.js docs3y ago
Documentation suggestion for @sukadia:method ClientUser#setPresence() Sets the full presence of the client user.
Spookadia
SpookadiaOP3y ago
why is setActivity not working in my case? did something change? it had been working up until i updated changing it to
await client.user.setPresence({ activities: [{name: "/help | " + hours + ":" + minutes + " left", type: ActivityType.Listening}] })
await client.user.setPresence({ activities: [{name: "/help | " + hours + ":" + minutes + " left", type: ActivityType.Listening}] })
did not work
Want results from more Discord servers?
Add your server