Programming a Discord Bot [Error]?

I'm currently programming a Smash or Pass Discord bot for my "business" and I'm just wondering why the following error keeps occurring:

For the following code:

I don't understand what the problem is, can someone help me?
If you have any questions, feel free to ask 😉

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
2 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
NoArtFX
1 year ago

https://discordjs.guide/popular-topics/intents.html#privileged-intents

You need to activate certain intents for your bot on the official Discord Developer page.

Fab1anDev
1 year ago

He says the intents are not valid.

I’m not a JS professional, but did you put the intents?