diff --git a/init/load-commands.ts b/init/load-commands.ts index 1714ecf..3a29f5a 100644 --- a/init/load-commands.ts +++ b/init/load-commands.ts @@ -6,7 +6,7 @@ import { logger } from '../logger'; export async function loadCommands(client: ExtendedClient): Promise>{ const foldersPath = path.join(__dirname, '../commands'); - const commandFolders = readdirSync(foldersPath); + const commandFolders = await readdir(foldersPath); const commands: Array = []; for(const folder of commandFolders){ const commandsPath = path.join(foldersPath, folder);