Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

error when starting #2

Open
andrevitxr opened this issue Mar 23, 2022 · 1 comment
Open

error when starting #2

andrevitxr opened this issue Mar 23, 2022 · 1 comment

Comments

@andrevitxr
Copy link

C:\xampp\htdocs\discord-interrupt-bot\node_modules\discord.js\src\client\Client.js:548
throw new TypeError('CLIENT_MISSING_INTENTS');
^

TypeError [CLIENT_MISSING_INTENTS]: Valid intents must be provided for the Client.
at Client._validateOptions (C:\xampp\htdocs\discord-interrupt-bot\node_modules\discord.js\src\client\Client.js:548:13)
at new Client (C:\xampp\htdocs\discord-interrupt-bot\node_modules\discord.js\src\client\Client.js:76:10)
at Object. (C:\xampp\htdocs\discord-interrupt-bot\index.js:2:16)
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 {
[Symbol(code)]: 'CLIENT_MISSING_INTENTS'

@Mars7383
Copy link
Owner

This project was made with discord.js v12, the intents error you're receiving indicates you're on discord.js v13. I've updated the repository to include a package.json file and also updated the readme with instructions to install the correct dependencies

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

No branches or pull requests

2 participants