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 loadButtonEvents(client: Client, ft: FileType) {
for (const file of btnFiles) {
const filePath = path.join(btnPath, file)
const { default: btnImport } = await import("file://" + filePath)
const btn: IButton = btnImport
const { default: btn } = await import("file://" + filePath) as { default: IButton }
if ("name" in btn && "execute" in btn) {
client.buttons.set(btn.name, btn)