fix global sync

This commit is contained in:
2023-06-16 23:12:43 +02:00
parent f06036e340
commit 75444ff5f3
+1 -1
View File
@@ -13,7 +13,7 @@ const promises = [] as Array<Promise<void>>
for (const file of commandFiles) { for (const file of commandFiles) {
const filePath = path.join(commandsPath, file) const filePath = path.join(commandsPath, file)
promises.push(import(filePath).then(({ default: command, global }) => { promises.push(import(filePath).then(({ default: command, global }) => {
if (global === true) return if (global !== true) return
if ('data' in command && 'execute' in command) { if ('data' in command && 'execute' in command) {
commands.push(command.data.toJSON()) commands.push(command.data.toJSON())
} else { } else {