Moved to bun
This commit is contained in:
@@ -7,11 +7,10 @@ import { ExtendedClient as Client } from "~/utils/Client"
|
||||
import logToChannel from "~/utils/Functions/logtochannel"
|
||||
import tryCatch from "../Functions/trycatch"
|
||||
import { log } from "../Logger"
|
||||
type FileType = "js" | "ts"
|
||||
|
||||
export default async function loadModalEvents(client: Client, ft: FileType) {
|
||||
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(ft))
|
||||
const modalFiles = fs.readdirSync(modalPath).filter(file => file.endsWith(".ts"))
|
||||
|
||||
for (const file of modalFiles) {
|
||||
const filePath = path.join(modalPath, file)
|
||||
|
||||
Reference in New Issue
Block a user