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
d.js toolkit
d.js toolkit•3y 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!
xjanex
xjanexOP•3y ago
hello any help?
Not So Marv
Not So Marv•3y ago
Discord.ActivityType.Watching
xjanex
xjanexOP•3y ago
ye i typed this it gave me an error
Not So Marv
Not So Marv•3y ago
Show the error?
xjanex
xjanexOP•3y ago
k wait here it is
type: Discord.ActivityType.Watching,
^
ReferenceError: Discord is not defined
at file:///home/container/discord.js:53:11
type: Discord.ActivityType.Watching,
^
ReferenceError: Discord is not defined
at file:///home/container/discord.js:53:11
@needhamgeorge
Silver
Silver•3y ago
so import discord
Not So Marv
Not So Marv•3y ago
^
xjanex
xjanexOP•3y ago
wdym
Not So Marv
Not So Marv•3y ago
How did you define Constants earlier?
Silver
Silver•3y ago
the error means what it says, the variable Discord doesn't exist in your file or it's assigned undefined
xjanex
xjanexOP•3y ago
how do i fix it
Silver
Silver•3y ago
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
xjanex
xjanexOP•3y ago
or how can i set it to "watching" with : Constants.ActivityTypes. ??
Not So Marv
Not So Marv•3y ago
.Watching

Did you find this page helpful?