Added bun bundle
This commit is contained in:
@@ -8,9 +8,9 @@ import logToChannel from "~/utils/Functions/logtochannel"
|
||||
import tryCatch from "../Functions/trycatch"
|
||||
import { log } from "../Logger"
|
||||
|
||||
export default async function loadModalEvents(client: Client) {
|
||||
const modalPath = path.join(import.meta.dirname, "..", "..", "components", "modals")
|
||||
const modalFiles = fs.readdirSync(modalPath).filter(file => file.endsWith(".ts"))
|
||||
export default async function loadModalEvents(client: Client, ft: "ts" | "js", folder: "src" | "dist") {
|
||||
const modalPath = path.join(process.cwd(), folder, "components", "modals")
|
||||
const modalFiles = fs.readdirSync(modalPath).filter(file => file.endsWith(`.${ft}`))
|
||||
|
||||
for (const file of modalFiles) {
|
||||
const filePath = path.join(modalPath, file)
|
||||
|
||||
Reference in New Issue
Block a user