Code refactror

This commit is contained in:
2023-12-30 16:53:44 +01:00
parent a4d96dd63d
commit 474a537797
21 changed files with 81 additions and 80 deletions

View File

@@ -5,7 +5,7 @@ import path = require("path")
import fs = require("fs")
import { FileType } from "../../typings"
function loadAutocompleteEvents(client: Client, ft: FileType) {
export default function loadAutocompleteEvents(client: Client, ft: FileType) {
const autocompletePath = path.join(
__dirname,
"..",
@@ -52,6 +52,4 @@ function loadAutocompleteEvents(client: Client, ft: FileType) {
console.error(error)
}
})
}
export { loadAutocompleteEvents }
}