#Valid intents must be provided for client

23 messages · Page 1 of 1 (latest)

vast nicheBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

wraith sigil
#

By providing the intents you need

vast nicheBOT
knotty briar
#

idk how to do that

#

now im getting an error that bot isnt defined

#

pretty sure line 13 has to be a bot variable but idk how to do that since i know little about js

whole dome
#

check #resources

knotty briar
#

im just trying to make a basic informational bot

whole dome
#

ok

knotty briar
#

ive done it before a few months ago but now they added this new intents bs

#

i just need to define bot as discord.js

whole dome
#

still need to learn JS

knotty briar
#

idk how

whole dome
#

and it’s not even the issue

knotty briar
#

idk how long it was i just want to get my bot working

whole dome
#

#resources

knotty briar
wraith sigil
#

Yeah, you blindly copy pasted something

whole dome
#

well you named client as bot

wraith sigil
#

You've now declared a variable called client, and not bot