title: Require is not a function discord.js
body: <p>I was coding an event handler (by Codelyon) but I ran into a new error. Here it is</p>
  <pre><code>C:\Users\shann\Desktop\DiscordBot\main.js:10
      require(`./handlers/${handler}`)(client, Discord);
                                      ^
  
  TypeError: require(...) is not a function
      at C:\Users\shann\Desktop\DiscordBot\main.js:10:37
      at Array.forEach (&lt;anonymous&gt;)
      at Object.&lt;anonymous&gt; (C:\Users\shann\Desktop\DiscordBot\main.js:9:37)
      at Module._compile (internal/modules/cjs/loader.js:1063:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
      at Module.load (internal/modules/cjs/loader.js:928:32)
      at Function.Module._load (internal/modules/cjs/loader.js:769:14)
      at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
      at internal/main/run_main_module.js:17:47
  </code></pre>
  <p>My main coding is here. (main.js)</p>
  <pre><code>const Discord = require('discord.js');
  const client = new Discord.Client();
  require(&quot;dotenv&quot;).config();
  const fs = require('fs');
  
  client.commands = new Discord.Collection();
  client.events = new Discord.Collection();
  
  ['command_handler','event_handler'].forEach(handler =&gt;{
      require(`./handlers/${handler}`)(client, Discord);
  });
  
  
  
  
  
  
  
  client.login(process.env.DISCORD_TOKEN);
  
  
  </code></pre>
  <p>I have all the necessary packages (along with others like images-scraper).
  For my events, I have message and ready. (Ready tells me when my bot is running and message senses when the commands are said). I also have some commands. Tell me if you need the coding in those.
  Here's the coding for my event handler:</p>
  <pre><code>const fs = require('fs');
  
  module.exports = (client, Discord) =&gt;{
      const load_dir = (dirs) =&gt;{
          const event_files = fs.readdirSync(`./events/${dirs}`).filter(file =&gt; file.endsWith('.js'));
  
          for(const file of event_files){
              const event = require(`../events/${dirs}/${file}`);
              const event_name = file.split('.')[0];
              client.on(event_name, event.bind(null, Discord, client));
  
          }
      }
  
      ['client', 'guild'].forEach(e =&gt; load_dir(e));
  }
  </code></pre>
  <p>And here's my coding for my command handler:</p>
  <pre><code>const fs = reqire('fs');
  
  module.exports = (client, Discord) =&gt;{
      const command_files = fs.readdirSync('./commands/').filter(file =&gt; file.endsWith('.js'))
  
      for(const file of command_files){
          const command = require(`../commands/${file}`)
          if(command.name){
              client.commands.set(command.name, command);
          } else {
              continue;
          }
      }
  }
  </code></pre>