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 loadSlashCommandsEvents(client: Client, ft: FileTy
for (const file of cmdFiles) {
const filePath = path.join(cmdPath, file)
const { default: cmdImport } = await import("file://" + filePath)
const cmd: ICommand = cmdImport
const { default: cmd } = await import("file://" + filePath) as { default: ICommand }
if ("data" in cmd && "execute" in cmd) {
client.commands.set(cmd.data.name, cmd)