TypeError [ClientMissingIntents]: Valid intents must be provided for the Client.
This is what i have in my file :
Error :
This happens when i run it
14 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!
- ✅
Marked as resolved by OPyou need to provide intents for your client
[email protected]
node v20.13.1
cant just construct an empty client
what does that mean
I also have that
you have to provide intents for that to work
i dont know where you got that code from but it is outdated
so consider following the guide instead
ok ty ill look into it
error: new Error("Used disallowed intents")
i now get this error
-
Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
- Error: Used disallowed intents
If you are using the GuildMembers
, GuildPresences
, or MessageContent
intents, you need to enable them via Developer Portal > Your app > Bot > Privileged Gateway Intentsalso what is your djs version
[email protected]
i downloaded it today
installed it
alright
i was wondering since you used the incorrect tag
@one hella gay wolvinny ❄ 🌈 alr done ty for your help