title: How to make Discord.js reply to discord DM messages
body: <p>I am trying to get discord.js to read DM messages on Discord to have a bot that will be a server/faction application bot made from scratch but I Have it to send the first part when you type %apply to the bot the problem comes when trying to get passed question 2 it keeps getting question 2 instead of going to question 3</p>
  
  <p>I am trying to filter out the DM messages when they are not the same as the passed ones so I have several if commands </p>
  
  <pre><code>bot.on("message", function(message) {
  if (message.author.equals(bot.user)) return;
      if (message.content === "%apply") {
          apply = "TRUE";
          a0 = message.author.lastMessageID
          message.author.sendMessage("```We need to ask some questions so  we can know a litte bit about yourself```");
          message.author.sendMessage("```Application Started - Type '#Cancel' to cancel the application```");
          message.author.sendMessage("```Question 1: In-Game Name?```");
      }
      if ((message.guild === null) &amp;&amp; (message.author.lastMessageID != a0) &amp;&amp; (message.content != "%apply") &amp;&amp; (apply === "TRUE")) {
          a1 = message.author.lastMessageID;
          message.author.sendMessage("```Question 2: Age?```");
      }
      if ((message.guild === null) &amp;&amp; (message.author.lastMessageID != a1) &amp;&amp; (message.author.lastMessageID != a0) &amp;&amp; (apply === "TRUE")) {
          a2 = message.author.lastMessageID;
          message.author.sendMessage("```Question 3: Timezone? NA, AU, EU, NZ, or Other? (If other, describe your timezone)```");
      }
      if ((message.guild === null) &amp;&amp; (message.author.lastMessageID != a2) &amp;&amp; (message.author.lastMessageID != a1) &amp;&amp; (message.author.lastMessageID != a0) &amp;&amp; (apply === "TRUE")) {
          a3 = message.author.lastMessageID;
          message.author.sendMessage("```Question 4: Do you have schematica?```");
      }
  </code></pre>
  
  <p>I expected it to go from question 1 to question 2 the question 3</p>