From 75444ff5f371358b35affe5f809fc80c9e623ee3 Mon Sep 17 00:00:00 2001 From: Legonzaur Date: Fri, 16 Jun 2023 23:12:43 +0200 Subject: [PATCH] fix global sync --- src/syncCommandsGlobal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syncCommandsGlobal.ts b/src/syncCommandsGlobal.ts index a35835c..97b1c46 100644 --- a/src/syncCommandsGlobal.ts +++ b/src/syncCommandsGlobal.ts @@ -13,7 +13,7 @@ const promises = [] as Array> for (const file of commandFiles) { const filePath = path.join(commandsPath, file) promises.push(import(filePath).then(({ default: command, global }) => { - if (global === true) return + if (global !== true) return if ('data' in command && 'execute' in command) { commands.push(command.data.toJSON()) } else {