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 {