Updated all files to new interfaces

This commit is contained in:
2024-02-16 16:03:04 +01:00
parent 137401630e
commit 769c3d12ed
77 changed files with 168 additions and 168 deletions

View File

@@ -1,5 +1,5 @@
import { ExtendedClient as Client } from "utils/Client"
import { Event } from "interfaces"
import { IEvent } from "interfaces"
import path from "path"
import fs from "fs"
@@ -10,7 +10,7 @@ export default function loadEvents(client: Client) {
const eventFiles = fs.readdirSync(path.join(serverDir, eventDir))
for (const eventFile of eventFiles) {
const eventPath = path.join(serverDir, eventDir, eventFile)
const event: Event = require(eventPath)
const event: IEvent = require(eventPath)
if (!event.disabled) {
client.on(event.event, event.execute)
}