title: This error is occurring when I'm going to create a bot in js and I can't fix it. Can someone help me?
body: <p>I need help creating a discord bot in js. Before we could do it without 'intents', but now discord practically obliges and I'm new to programming so I have no idea how to put these 'intents'! if anyone knows and can help me I'm immensely grateful, here below is an example of the error and how is my code! Thanks.</p>
  <p>The error:</p>
  <pre><code>TypeError [CLIENT_MISSING_INTENTS]: Valid intents must be provided for the Client.
      at Client._validateOptions (C:\Users\arthu\3D Objects\BotBuscape\node_modules\discord.js\src\client\Client.js:544:13)
      at new Client (C:\Users\arthu\3D Objects\BotBuscape\node_modules\discord.js\src\client\Client.js:73:10)
      at Object.&lt;anonymous&gt; (C:\Users\arthu\3D Objects\BotBuscape\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:79:12)
      at node:internal/main/run_main_module:17:47 {
    [Symbol(code)]: 'CLIENT_MISSING_INTENTS'
  }
  </code></pre>
  <p>My code:</p>
  <pre><code>const Discord = require('discord.js'); 
  const Client = new Discord.Client();
  const config = require(&quot;./config.json&quot;)
  
  bot.login(); 
  
  bot.once('ready', () =&gt; { console.log(`Bot online: ${bot.user.tag}!`); }); 
  bot.on(&quot;guildMemberAdd&quot;, member =&gt; { member.send(`Seja bem vindo! Siga as regras do servidor e divirta-se ðŸ˜€`) });
  
  client.login('config.token')
  </code></pre>