title: How to fix "event.bind is not a function"?
body: <p>I'm setting up a new Discord server, so that means I need to make a new custom bot for it. I was redoing the index.js code and then I try starting it up for the first time and it is telling me "event.bind is not a function"? Where is the issue and how do I resolve it?</p>
  
  <p>I have tried reinstalling Node.js, Enmap, and Discord.js but the problem keeps reoccurring.</p>
  
  <pre><code>fs.readdir("./events/", (err, files) =&gt; {
    if (err) return console.error(err);
    files.forEach(file =&gt; {
      const event = require(`./events/${file}`);
      const eventName = file.split(".")[0];
      client.on(eventName, event.bind(null, client));
    });
  });
  </code></pre>