title: Discord.js I'm having problems with the v13 bot reading the commands inside Commands/Moderation category folders
body: <p>I'm having problems with the v13 bot reading the commands inside Commands/Moderation category folders</p>
  <p>I just want the bot to recognize and turn on commands in category folders to be more organized</p>
  <p>Commands/Moderation<br>
  Commands/Fun</p>
  <p>my code:</p>
  <pre class="lang-js prettyprint-override"><code>const commandFiles = fs.readdirSync(&quot;./src/Commands/*/*.js&quot;)
    .filter(file =&gt; file.endsWith(&quot;.js&quot;));
  
  /**
   * @type {Command[]}
  */
  const commands = commandFiles.map(file =&gt; require(`../Commands/*/*/${file}`));
  
  commands.forEach(cmd =&gt; {
      console.log(`Command ${cmd.name} loaded`);
      this.commands.set(cmd.name, cmd);
  });
  
  const slashCommands = commands
    .filter(cmd =&gt; [&quot;BOTH&quot;, &quot;SLASH&quot;].includes(cmd.type))
    .map(cmd =&gt; ({
        name: cmd.name.toLowerCase(),
        description: cmd.description,
        permissions: [],
        options: cmd.slashCommandOptions,
        defaultPermission: true
  }));
  </code></pre>
  <p>Error:</p>
  <pre><code>node:internal/fs/utils:344
      throw err;
      ^
  
  Error: ENOENT: no such file or directory, scandir './src/Commands/*/*.js'
      at Object.readdirSync (node:fs:1390:3)
      at Client.start (C:\Users\stifler\Desktop\botv13\src\Structures\Client.js:31:27)
      at Object.&lt;anonymous&gt; (C:\Users\stifler\Desktop\botv13\src\index.js:11:8)
      at Module._compile (node:internal/modules/cjs/loader:1101:14)
      at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
      at Module.load (node:internal/modules/cjs/loader:981:32)
      at Function.Module._load (node:internal/modules/cjs/loader:822:12)
      at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
      at node:internal/main/run_main_module:17:47 {
    errno: -4058,
    syscall: 'scandir',
    code: 'ENOENT',
    path: './src/Commands/*/*.js'
  }
  </code></pre>