From b8cc8d8d307dc01abf027ecaa98c47f3bf49a77b Mon Sep 17 00:00:00 2001 From: Slincnik Date: Wed, 15 Jan 2025 00:25:41 +0300 Subject: [PATCH] fix: fixing typing --- src/handlers/event-handler/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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[] = [];