TypeError [ClientMissingIntents]: Valid intents must be provided for the Client.
at Client._validateOptions (/home/runner/ChartreuseAccomplishedOpenlook/node_modules/discord.js/src/client/Client.js:489:13)
at new Client (/home/runner/ChartreuseAccomplishedOpenlook/node_modules/discord.js/src/client/Client.js:78:10)
at Object.<anonymous> (/home/runner/ChartreuseAccomplishedOpenlook/index.js:2:16)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
Hello and welcome to Ask @xxrobloxpolskax!
All discord bots now require Intents
to be passed to them when created, for example:
const client = new Discord.Client({intents: 32767});
As a note, you should not use this in production, as this states that your bot requires all permissions/intents, but it could be used while you’re setting up your bot.
Link to an intent calculator (So you don’t have to use all of them)
3 Likes
alternatively, to change the intents within your code, you could pass an array. See
2 Likes
-
You Need To Allow Intents From Discord Developer Portal
-
And Go To Your Bot Then Go to Bot Section
-
Enable PRESENCE INTENT And SERVER MEMBERS INTENT And MESSAGE CONTENT INTENT Then It Will Work With You