diff --git a/src/client/index.ts b/src/client/index.ts index b337759..6e7586f 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -197,7 +197,11 @@ class Client extends DiscordClient { if (process[Symbol.for("ts-node.register.instance")]) { commandDir = path.resolve(`${this.developmentDirectory}/${directory}`); } else { - commandDir = path.resolve(`${this.productionDirectory}/${directory}`); + if(!this.productionDirectory) { + commandDir = path.resolve(directory); + } else { + commandDir = path.resolve(`${this.productionDirectory}/${directory}`); + } } console.log(commandDir)