title: How do I login with multiple discord bot accounts WITHOUT hardcoding?
body: <p>I have been trying to get this to work for a bit now, with no avail.</p>
  
  <p>What i have tried is below, what i want to be able to do is have multiple discord bot accounts respond to the same prompts at the same time, without hardcoding it, my best example so far is down below.</p>
  
  <p>EDIT: I know about the client.on error, but this is the best example that has gotten this far I have had</p>
  
  <pre><code>const auth = require("./tokens.json");
  const Discord = require("discord.js");
  client = new Discord.Client();
  var clients = [];
  auth["Tokens"].forEach(element =&gt; {
      console.log(clients)
      clients.push(new Discord.Client().login(element));
      console.log(clients)
  });
  console.log(clients[0])
  console.log(clients[1])
  console.log(clients[2])
  
  clients.forEach(client =&gt; {
      client.on("ready", () =&gt; {
          console.log("I am ready!");
          console.log(client.user.id)
      });
  });
  
  </code></pre>
  
  <p>My tokens.json code:</p>
  
  <pre><code>{
      "Tokens": ["MjIxtokentoken","MjIxtokentokenc","MjIxtokentoken"]
  }
  </code></pre>
  
  <p>The output:</p>
  
  <pre><code>PS E:\test&gt; node app.js
  []
  [ Promise { &lt;pending&gt; } ]
  [ Promise { &lt;pending&gt; } ]
  [ Promise { &lt;pending&gt; }, Promise { &lt;pending&gt; } ]
  [ Promise { &lt;pending&gt; }, Promise { &lt;pending&gt; } ]
  [ Promise { &lt;pending&gt; }, Promise { &lt;pending&gt; }, Promise { &lt;pending&gt; } ]
  Promise { &lt;pending&gt; }
  Promise { &lt;pending&gt; }
  Promise { &lt;pending&gt; }
  E:\test\app.js:40
      client.on("ready", () =&gt; {
             ^
  
  TypeError: client.on is not a function
      at E:\test\app.js:40:12
      at Array.forEach (&lt;anonymous&gt;)
      at Object.&lt;anonymous&gt; (E:\test\app.js:39:9)
      at Module._compile (internal/modules/cjs/loader.js:959:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
      at Module.load (internal/modules/cjs/loader.js:815:32)
      at Function.Module._load (internal/modules/cjs/loader.js:727:14)
      at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
      at internal/main/run_main_module.js:17:11
  </code></pre>