How to set the status for the latest djs version

Please tell me how idk how to do it since djs 14.5.3 came out
9 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
treble/luna
treble/luna3mo ago
what status exactly
d.js docs
d.js docs3mo ago
documentation suggestion for @wut: :method: ClientUser#setActivity() @14.15.3 Sets the activity the client user is playing.
// Set the client user's activity
client.user.setActivity('discord.js', { type: ActivityType.Watching });
// Set the client user's activity
client.user.setActivity('discord.js', { type: ActivityType.Watching });
🤖 RoboticRobot 🤖
Or you can use this
d.js docs
d.js docs3mo ago
:method: ClientUser#setPresence() @14.15.3 Sets the full presence of the client user.
// Set the client user's presence
client.user.setPresence({ activities: [{ name: 'with discord.js' }], status: 'idle' });
// Set the client user's presence
client.user.setPresence({ activities: [{ name: 'with discord.js' }], status: 'idle' });
wut
wutOP3mo ago
so do i combine them or new line
treble/luna
treble/luna3mo ago
depends If you want only the status, use the former If you want the presence too (online, dnd, etc), use the latter
Mark
Mark3mo ago
(or set it in the ClientOptions if the presence is static)
wut
wutOP3mo ago
dw i found out how
Want results from more Discord servers?
Add your server