Code refactror
This commit is contained in:
@@ -5,7 +5,7 @@ import path = require("path")
|
||||
import fs = require("fs")
|
||||
import { FileType } from "../../typings"
|
||||
|
||||
function loadButtonEvents(client: Client, ft: FileType) {
|
||||
export default function loadButtonEvents(client: Client, ft: FileType) {
|
||||
const btnPath = path.join(__dirname, "..", "..", "events", "buttons")
|
||||
const btnFiles = fs
|
||||
.readdirSync(btnPath)
|
||||
@@ -46,6 +46,4 @@ function loadButtonEvents(client: Client, ft: FileType) {
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export { loadButtonEvents }
|
||||
}
|
||||
Reference in New Issue
Block a user