title: CLIENT_MISSING_INTENTS Discord.js V13
body: <p>So I recently got this error when updated my bot from discord.js V12 to V13. I know I updated discord.js to V13 as it is in my package.json. I have no idea why this is not working. I even added every Intents there is for discord.</p>
  <p><strong>index.js code</strong></p>
  <pre class="lang-js prettyprint-override"><code>const { Collection, MessageEmbed, Intents} = require(&quot;discord.js&quot;);
  const token = process.env['TOKEN']
  const server = require('./server.js');
  const fs = require(&quot;fs&quot;)
  const MongoClient = require('./utils/MongoClient');
  const myIntents = new Intents();
  myIntents.add(Intents.FLAGS.GUILD_PRESENCES, Intents.FLAGS.GUILD_MEMBERS, Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_BANS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.DIRECT_MESSAGES, Intents.FLAGS.GUILD_EMOJIS_AND_STICKERS, Intents.FLAGS.GUILD_INTEGRATIONS, Intents.FLAGS.GUILD_WEBHOOKS, Intents.FLAGS.GUILD_INVITES, Intents.FLAGS.GUILD_MESSAGE_TYPING, Intents.FLAGS.DIRECT_MESSAGE_REACTIONS, Intents.FLAGS.DIRECT_MESSAGE_TYPING, Intents.FLAGS.GUILD_VOICE_STATES, Intents.FLAGS.GUILD_MESSAGE_REACTIONS);
  const bot = new MongoClient({ intents: myIntents});
  </code></pre>
  <p><strong>package.json code</strong></p>
  <pre class="lang-js prettyprint-override"><code>{
     &quot;name&quot;: &quot;switch&quot;,
     &quot;version&quot;: &quot;2.0.0&quot;,
     &quot;description&quot;: &quot;Switch is a all new bot for discord!&quot;,
     &quot;main&quot;: &quot;index.js&quot;,
     &quot;scripts&quot;: {
        &quot;start&quot;: &quot;node index.js&quot;
     },
     &quot;dependencies&quot;: {
        &quot;discord.js&quot;: &quot;^13.1.0&quot;,
        &quot;express&quot;: &quot;^4.17.1&quot;,
        &quot;fs&quot;: &quot;^0.0.1-security&quot;,
        &quot;mongoose&quot;: &quot;^6.0.5&quot;
     },
     &quot;devDependencies&quot;: {
        &quot;node&quot;: &quot;^16.6.1&quot;
     }
  }
  </code></pre>
  <p><strong>Error</strong></p>
  <pre class="lang-js prettyprint-override"><code>/home/runner/switch-beta-test/node_modules/discord.js/src/client/Client.js:544
        throw new TypeError('CLIENT_MISSING_INTENTS');
        ^
  
  TypeError [CLIENT_MISSING_INTENTS]: Valid intents must be provided for the Client.
      at MongoClient._validateOptions (/home/runner/switch-beta-test/node_modules/discord.js/src/client/Client.js:544:13)
      at new Client (/home/runner/switch-beta-test/node_modules/discord.js/src/client/Client.js:73:10)
      at new MongoClient (/home/runner/switch-beta-test/utils/MongoClient.js:12:9)
      at Object.&lt;anonymous&gt; (/home/runner/switch-beta-test/index.js:13:13)
      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>