fix: fixing typing

This commit is contained in:
Slincnik 2025-01-15 00:25:41 +03:00
parent d437e2b723
commit b8cc8d8d30
No known key found for this signature in database

View file

@ -6,14 +6,14 @@ import { GuildQueueEvents, useMainPlayer } from "discord-player";
import { ExtendedClient } from "@/structures/client.js"; import { ExtendedClient } from "@/structures/client.js";
import { ClientEvents } from "discord.js"; import { ClientEvents } from "discord.js";
interface EventHandlerEvents { type EventHandlerEvents = {
data: { data: {
name: keyof ClientEvents; name: keyof ClientEvents;
once?: boolean; once?: boolean;
player?: boolean; player?: boolean;
}; };
run: Function; run: (...args: unknown[]) => void;
} };
export class EventHandler { export class EventHandler {
events: EventHandlerEvents[] = []; events: EventHandlerEvents[] = [];