title: How do I fix CLIENT_MISSING_INTENTS error?
body: <p>I started learning about discord.js, but now I am facing this issue.
  I tried some googling, but I couldn't manage to fix it.</p>
  <pre><code>const Discord = require('discord.js');
  // const Discord = require('discord.js');
  
  // Using Intents class
  const client = new Discord.Client();
  
  client.on('message', (msg) =&gt; {
    // Send back a reply when the specific command has been written by a user.
    if (msg.content === '!hello') {
      msg.reply('Hello, World!');
    }
  });
  
  client.login('my_token');
  </code></pre>
  <p>This is the error I am getting:</p>
  <p><a href="https://i.stack.imgur.com/6jyBu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6jyBu.png" alt="Enter image description here" /></a></p>