Remove extra declaration

This commit is contained in:
2024-08-24 22:59:02 +02:00
parent 2a8e253f4f
commit 8b8c50551f
7 changed files with 7 additions and 14 deletions

View File

@@ -15,8 +15,7 @@ export default async function loadAutocompleteEvents(client: Client, ft: FileTyp
for (const file of autocompleteFiles) {
const filePath = path.join(autocompletePath, file)
const { default: autocompleteImport } = await import("file://" + filePath)
const autocomplete: IAutocomplete = autocompleteImport
const { default: autocomplete } = await import("file://" + filePath) as { default: IAutocomplete }
if ("name" in autocomplete && "execute" in autocomplete) {
client.autocomplete.set(autocomplete.name, autocomplete)