title: How can a Discord bot reply to only certain users?
body: <p>I am looking for a way to make a Discord bot which either reacts or replies to only certain users. It can choose the user by either role or ID, but I can not seem to get it working. This is what I have tried:</p>
  
  <pre><code>if (message.author.id === 'myDiscordID') {
          message.reply('hello!').then(r =&gt; {
          });
      }
  </code></pre>
  
  <p>I am coding in Discord JS, if that helps. This is the entire index.js file:</p>
  
  <pre><code>const Discord = require('discord.js');
  const { prefix, token } = require('./config.json');
  
  const client = new Discord.Client();
  
  client.once('ready', () =&gt; {
      console.log('Ready!');
  });
  
  client.on('message', message =&gt; {
  
      if (message.author.id === 'myDiscordID') {
          message.reply('hello!').then(r =&gt; {
          });
      }
  
  });
  client.login(token);
  </code></pre>
  
  <p>The file runs fine, the bot comes online, and then it prints 'Ready!' to the console, however, the rest of the code doesn't seem to work. </p>