13 Replies
- 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!is there an error when you try to set the status?
No errors occurred
Also, you can pass presence data in the client options
under the option
presence
, and it takes a PresenceData
object
its also called "invisible"
, not "offline"
It does not work
Is the code wrong?
it looks right from what i can tell
add this into your code before the
ready
event and send the console outputPlease add the following code to your code base outside of any other event listeners and provide the full log output relevant to your issue.
- 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 | hastebinAnd you're saying the bot is still marked as online when it logs in?
Sorry this code worked. The position of semicolon was inappropriate
just wanted to add something to prevent other problems you don’t need 32767 as intents