error

mail@pastecode.io avatar
unknown
javascript
2 years ago
1.1 kB
2
Indexable
Never
C:\Users\coehd\OneDrive\Ambiente de Trabalho\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:\Users\coehd\OneDrive\Ambiente de Trabalho\bot\node_modules\discord.js\src\client\Client.js:548:13)
    at new Client (C:\Users\coehd\OneDrive\Ambiente de Trabalho\bot\node_modules\discord.js\src\client\Client.js:76:10)
    at Object.<anonymous> (C:\Users\coehd\OneDrive\Ambiente de Trabalho\bot\index.js:19:16)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
    at Module.load (node:internal/modules/cjs/loader:975: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'
}

Node.js v17.3.0