@hyperneutrino/djs-lite 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +1 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -151,7 +151,7 @@ export async function loadInteractions(client: Client, directory: string, argume
|
|
|
151
151
|
|
|
152
152
|
const absolutePath = path.resolve(file.parentPath, file.name);
|
|
153
153
|
const relativePath = path.relative(path.resolve(directory), absolutePath);
|
|
154
|
-
const handlerKey = relativePath.replace(/\.[^/.]+$/, "");
|
|
154
|
+
const handlerKey = relativePath.replace(/\.[^/.]+$/, "").replace(/\\/g, "/");
|
|
155
155
|
|
|
156
156
|
const { default: item } = await import(absolutePath).catch(() => null);
|
|
157
157
|
|