Change Status
Hi, how can i change my discord bot status?
11 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!In your event listener, in the
onReady
event,discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
you shall add this code:
Also, don't forget to import the class from the discord.js lib
e. g.
you can modify the type to
ActivityType.Watching
to ActivityType.Playing
, ActivityType.Listening
or ActivityType.Streaming
.
but if you change to streaming, dont forget to add an url to the stream/video/whatever
and the name
field, to whatever you want.
and I think, that's it.
you may also want to check out this:@korinn did it work?
Nope :(
I just implemented it on my bot
I can show you the code
Please
make sure to include this in your requires('discord.js') part
careful, if you already have another client.on part, don't have two! jsut take this line of code
client.user.setActivity('Netflix', { type: ActivityType.Watching });
and add it to that existing functionYou can also set your activities in the
presence
object of the options object you use when creating your Client instance