Ran yarn format

This commit is contained in:
2023-12-30 17:35:18 +01:00
parent 443c20a559
commit 7f7b14ce21
17 changed files with 61 additions and 40 deletions

View File

@@ -7,9 +7,7 @@ import { FileType } from "../../typings"
export default function loadButtonEvents(client: Client, ft: FileType) {
const btnPath = path.join(__dirname, "..", "..", "events", "buttons")
const btnFiles = fs
.readdirSync(btnPath)
.filter(file => file.endsWith(ft))
const btnFiles = fs.readdirSync(btnPath).filter(file => file.endsWith(ft))
for (const file of btnFiles) {
const filePath = path.join(btnPath, file)
@@ -46,4 +44,4 @@ export default function loadButtonEvents(client: Client, ft: FileType) {
})
}
})
}
}