My Discord Bot doesnt work

When I click run this happens:
TypeError [ClientMissingIntents]: Valid intents must be provided for the Client.
at Client._validateOptions (/home/runner/JobBot-1/node_modules/discord.js/src/client/Client.js:480:13)
at new Client (/home/runner/JobBot-1/node_modules/discord.js/src/client/Client.js:78:10)
at Object. (/home/runner/JobBot-1/index.js:2:16)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
Hint: hit control+c anytime to enter REPL.
(node:1005) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use node --trace-warnings ... to show where the warning was created)

Im following this video: Code a Discord Bot with JavaScript - Host for Free in the Cloud - YouTube
And yes im using the new .env thing secret.

Please help, thanks

It seems the discord.js version you are using and the version used in the video don’t match, you need or follow the last version documentation, or downgrade the discord.js version you are using

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.