title: How to reply to any DMs sent to the bot?
body: <p>I am trying to make my bot replying to any DM sent to it.</p>
  
  <p>So I currently have this:</p>
  
  <pre><code>client.on('msg', () =&gt; {
    if (msg.channel.DMChannel) {
      msg.reply("You are DMing me now!");
    }
  });
  </code></pre>
  
  <p>But unfortunately, it does not reply to any DM.</p>
  
  <p>I've tried to replace <code>msg.channel.DMChannel</code> with <code>msg.channel.type == 'dm'</code> but this didn't work.</p>
  
  <p>I also tried to replace <code>msg.reply</code> with <code>msg.author.send</code> and <code>msg.channel.send</code> but they all didn't work.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks!</p>