how to set my bot status to "watching"
Constants.ActivityTypes.GAME,
this makes my bot status to "playing" ,
i want it to be "watching
how?"
15 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!hello
any help?
Discord.ActivityType.Watching
ye i typed this it gave me an error
Show the error?
k wait
here it is
@needhamgeorge
so import discord
^
wdym
How did you define Constants earlier?
the error means what it says, the variable
Discord
doesn't exist in your file
or it's assigned undefined
how do i fix it
you should learn javascript before building a discord bot
To create a bot with discord.js, you should have a fairly decent grasp of JavaScript itself. While you can make a bot with very little JavaScript and programming knowledge, trying to do so without understanding the language first will only hinder you. You may get stuck on many uncomplicated issues, struggle with solutions to incredibly easy problems, and all-in-all end up frustrated. Sounds pretty annoying.- https://discordjs.guide/#before-you-begin
or how can i set it to "watching" with :
Constants.ActivityTypes.
??
.Watching