From 758be94728a46094b775d5bc4e6d57f96c3b371e Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Fri, 12 Jul 2024 23:01:06 +0300 Subject: [PATCH] I didnt save the import :sob: --- src/Client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.ts b/src/Client.ts index 350e074..4feadf9 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -377,7 +377,7 @@ export class Client extends TypedEventEmitter { const commands = await promisify(glob)(normalize(path + "/**/*.{ts,js}")); for (const commandPath of commands) { try { - let command: MaybeCommand = await require(commandPath); + let command: MaybeCommand = await import(commandPath); if ('default' in command) command = command.default; if (command.constructor.name === 'Object') command = Object.values(command)[0];