From 7109a2a0eff6c8a9048e43497c4afd74f4ddb416 Mon Sep 17 00:00:00 2001 From: Slincnik Date: Wed, 11 Dec 2024 15:13:07 +0300 Subject: [PATCH] refactor: added barrel file to utils --- src/handlers/command-handler/index.js | 2 +- src/handlers/event-handler/index.js | 2 +- src/utils/index.js | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 src/utils/index.js diff --git a/src/handlers/command-handler/index.js b/src/handlers/command-handler/index.js index 96ffe039..a62b4bb4 100644 --- a/src/handlers/command-handler/index.js +++ b/src/handlers/command-handler/index.js @@ -1,6 +1,6 @@ import logger from "../../helpers/logger.js"; import { client } from "../../index.js"; -import { getFilePaths } from "../../utils/get-path.js"; +import { getFilePaths } from "../../utils/index.js"; import { toFileURL } from "../../utils/resolve-file.js"; import registerCommands from "./functions/registerCommands.js"; diff --git a/src/handlers/event-handler/index.js b/src/handlers/event-handler/index.js index 6200e0a6..bda401f0 100644 --- a/src/handlers/event-handler/index.js +++ b/src/handlers/event-handler/index.js @@ -1,6 +1,6 @@ import logger from "../../helpers/logger.js"; import { client } from "../../index.js"; -import { getFilePaths } from "../../utils/get-path.js"; +import { getFilePaths } from "../../utils/index.js"; import { toFileURL } from "../../utils/resolve-file.js"; export const events = []; diff --git a/src/utils/index.js b/src/utils/index.js new file mode 100644 index 00000000..0a323cbb --- /dev/null +++ b/src/utils/index.js @@ -0,0 +1,3 @@ +export * from "./create-embed.js"; +export * from "./get-path.js"; +export * from "./resolve-file.js";