Проблема discord.js
c:\DS_BOT>nodemon
[nodemon] 3.1.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node index.js`
c:\DS_BOT\node_modules\discord.js\src\client\Client.js:512
throw new DiscordjsTypeError(ErrorCodes.ClientMissingIntents);
^
TypeError [ClientMissingIntents]: Valid intents must be provided for the Client.
at Client._validateOptions
(c:\DS_BOT\node_modules\discord.js\src\client\Client.js:512:13)
at new Client
(c:\DS_BOT\node_modules\discord.js\src\client\Client.js:80:10)
at Object.<anonymous> (c:\DS_BOT\index.js:5:16)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Function.executeUserEntryPoint [as runMain]
(node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49 {
code: 'ClientMissingIntents'
}
Node.js v20.13.1