Fix: change readdir to async
All checks were successful
Release / release-image (push) Successful in 2m2s
Release / deploy (push) Successful in 46s

This commit is contained in:
2024-10-13 14:59:46 +00:00
parent cb62c533b2
commit e7331498f4

View File

@@ -6,7 +6,7 @@ import { logger } from '../logger';
export async function loadCommands(client: ExtendedClient): Promise<Array<string>>{
const foldersPath = path.join(__dirname, '../commands');
const commandFolders = readdirSync(foldersPath);
const commandFolders = await readdir(foldersPath);
const commands: Array<string> = [];
for(const folder of commandFolders){
const commandsPath = path.join(foldersPath, folder);