title: Why is there an error with discord.js module when i start my bot with node?
body: <p>I recently got a weird error with my bot discord. discord.js seems to crash whenever I run my bot :</p>
  <pre><code>[nodemon] 2.0.12
  [nodemon] to restart at any time, enter `rs`
  [nodemon] watching path(s): *.*
  [nodemon] watching extensions: js,mjs,json  
  [nodemon] starting `node ./src/index.js`    
  C:\Users\myname\Documents\Loisir\Dev\Discord_Bots\Aura-discord\bot\node_modules\discord.js\src\rest\RESTManager.js:32
      const token = this.client.token ?? this.client.accessToken;
                                       ^
  
  SyntaxError: Unexpected token '?'
      at wrapSafe (internal/modules/cjs/loader.js:1070:16)
      at Module._compile (internal/modules/cjs/loader.js:1120:27)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
      at Module.load (internal/modules/cjs/loader.js:1000:32)
      at Function.Module._load (internal/modules/cjs/loader.js:899:14)
      at Module.require (internal/modules/cjs/loader.js:1042:19)
      at require (internal/modules/cjs/helpers.js:77:18)
      at Object.&lt;anonymous&gt; (C:\Users\hugo\Documents\Loisir\Dev\Discord_Bots\Aura-discord\bot\node_modules\discord.js\src\client\BaseClient.js:4:21)
      at Module._compile (internal/modules/cjs/loader.js:1156:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
  [nodemon] app crashed - waiting for file changes before starting...
  </code></pre>
  <p>This started to happen after I updated my discord.js and node module so I think it's not really a code issue and more just me who fucked up the update. I'm new to discord.js and node, so it's more than probable that this is something really simple.</p>
  <p>I tried to start it with node instead of nodemon but I got this:</p>
  <pre><code>C:\Users\hugo\Documents\Loisir\Dev\Discord_Bots\Aura-discord\bot\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 Client._validateOptions (C:\Users\hugo\Documents\Loisir\Dev\Discord_Bots\Aura-discord\bot\node_modules\discord.js\src\client\Client.js:544:13)
      at new Client (C:\Users\hugo\Documents\Loisir\Dev\Discord_Bots\Aura-discord\bot\node_modules\discord.js\src\client\Client.js:73:10)
      at Object.&lt;anonymous&gt; (C:\Users\hugo\Documents\Loisir\Dev\Discord_Bots\Aura-discord\bot\src\index.js:5: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>I'm a little lost (I mean a lot) with all of that and I couldn't really find anything on the internet.</p>
  <p>Here is my dependencies if it can help :</p>
  <pre><code>{
    &quot;name&quot;: &quot;Aura-discord&quot;,
    &quot;version&quot;: &quot;0.0.1&quot;,
    &quot;description&quot;: &quot;Aura is a bot specialized in the creation and management of tournaments on discord.&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;scripts&quot;: {
      &quot;dev&quot;: &quot;nodemon ./src/index.js&quot;,
      &quot;start&quot;: &quot;node ./src/index.js&quot;,
      &quot;build&quot;: &quot;&quot;
    },
    &quot;keywords&quot;: [],
    &quot;author&quot;: &quot;myName&quot;,
    &quot;mail&quot;: &quot;hberferf@auradiscord.bot&quot;,
    &quot;website&quot;: &quot;http://aura-discord.bot&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;dependencies&quot;: {
      &quot;discord.js&quot;: &quot;^13.0.1&quot;,
      &quot;mongoose&quot;: &quot;^5.13.5&quot;,
      &quot;node&quot;: &quot;^16.6.1&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;nodemon&quot;: &quot;^2.0.12&quot;
    }
  }
  </code></pre>
  <p>Thank you for taking the time to read this and please forgive any spelling mistakes.</p>