How do I use Client.updatePresence()?
The core library's Client class has an
updatePresence
function, how do I use this?16 Replies
- 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.
This doesn't seem to work
is it not setting anything? are you getting an error?
no error, it just shows the bot is online
Not sure if this’ll work, but provide a since value
since? what should I set it to?
i think that one's nullable, maybe
afk
is needed insteadI don’t believe it is, let me check
it is
try to provide an
afk
value ^Didn't work, tried both
true
and false
oh wait
So the activity worked, after I set afk
But the status is still online instead of dndah try doing
since: null
sadly didn't work
worked for me after waiting a bit
Ah yes
@d4isdavid thankyou so much!
np