diff --git a/src/handlers/event-handler/index.ts b/src/handlers/event-handler/index.ts index 4bedc289..397f0e6a 100644 --- a/src/handlers/event-handler/index.ts +++ b/src/handlers/event-handler/index.ts @@ -6,14 +6,14 @@ import { GuildQueueEvents, useMainPlayer } from "discord-player"; import { ExtendedClient } from "@/structures/client.js"; import { ClientEvents } from "discord.js"; -interface EventHandlerEvents { +type EventHandlerEvents = { data: { name: keyof ClientEvents; once?: boolean; player?: boolean; }; - run: Function; -} + run: (...args: unknown[]) => void; +}; export class EventHandler { events: EventHandlerEvents[] = [];