mirror of
https://github.com/JonnyBro/JaBa.git
synced 2025-01-20 01:13:47 +05:00
fix: fixing typing
This commit is contained in:
parent
d437e2b723
commit
b8cc8d8d30
1 changed files with 3 additions and 3 deletions
|
@ -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[] = [];
|
||||||
|
|
Loading…
Reference in a new issue