Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError [ClientMissingIntents]: Valid intents must be provided for the Client. #523

Open
DAMIOSKIDEV opened this issue Jul 25, 2023 · 0 comments

Comments

@DAMIOSKIDEV
Copy link

I got an error as soon as I launched the bot

I saw that Discord has a new Gateway and that you have to enter "intents", but I don't know which ones to enter.

Full Error

ypeError [ClientMissingIntents]: Valid intents must be provided for the Client.
    at Client._validateOptions (/root/discord-backup/node_modules/discord.js/src/client/Client.js:492:13)
    at new Client (/root/discord-backup/node_modules/discord.js/src/client/Client.js:78:10)
    at Object.<anonymous> (/root/discord-backup/start.js:4:10)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'ClientMissingIntents'

The specific line that I need to change:

client = new Discord.Client(),

Source: https://stackoverflow.com/questions/68694195/how-do-i-fix-client-missing-intents-error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant