title: Application Bot Discord.js
body: <p>So this code sends a DM to a user asks the user some questions my goal then is to send the application back to a specific channel not sure how to do that any help i know you have to user the channel id but not sure how to compile all the answers and then send them back to the specific channel?</p>
  <pre><code>
    let userApplications = {}
  
    bot.on(&quot;message&quot;, function(message) {
      if (message.author.equals(bot.user)) return;
  
      let authorId = message.author.id;
  
      if (message.content === &quot;%apply&quot;) {
          console.log(`Apply begin for authorId ${authorId}`);
          // User is not already in a registration process
          if (!(authorId in userApplications)) {
              userApplications[authorId] = { &quot;step&quot; : 1}
  
              message.author.send(&quot;```We need to ask some questions so  we can know a litte bit about yourself```&quot;);
              message.author.send(&quot;```Application Started - Type '#Cancel' to cancel the application```&quot;);
              message.author.send(&quot;```Question 1: In-Game Name?```&quot;);
          }
  
      } else {
  
          if (message.channel.type === &quot;dm&quot; &amp;&amp; authorId in userApplications) {
              let authorApplication = userApplications[authorId];
  
              if (authorApplication.step == 1 ) {
                  authorApplication.answer1 = message.content;
                  message.author.send(&quot;```Question 2: Age?```&quot;);
                  authorApplication.step ++;
              }
              else if (authorApplication.step == 2) {
                  authorApplication.answer2 = message.content;
                  message.author.send(&quot;```Question 3: Timezone? NA, AU, EU, NZ, or Other? (If other, describe your timezone)```&quot;);
                  authorApplication.step ++;
              }
              else if (authorApplication.step == 3) {
                  authorApplication.answer3 = message.content;
                  message.author.send(&quot;```Question 4: Do you have schematica?```&quot;);
                  authorApplication.step ++;
              }
  
              else if (authorApplication.step == 4) {
                  authorApplication.answer4 = message.content;
                  message.author.send(&quot;```Thanks for your registration. Type %apply to register again```&quot;);
                  //before deleting, you can send the answers to a specific channel by ID
                  bot.channels.cache.get(&quot;616852008837709844&quot;)
                    .send(`${message.author.tag}\n${authorApplication.answer1}\n${authorApplication.answer2}\n${authorApplication.answer3}\n${authorApplication.answer4});
                  delete userApplications[authorId];
              }
          }
      }
    });
  
  
  }
  
  
  module.exports.help = {
      name: &quot;app&quot;
  }```
  </code></pre>