jellyfin-discord-bot/server/structures/event.ts

9 lines
200 B
TypeScript
Raw Permalink Normal View History

2023-04-15 22:06:35 +02:00
import { ClientEvents } from "discord.js";
export class Event<Key extends keyof ClientEvents>{
constructor(
public event: Key,
public run: (...args: ClientEvents[Key]) => unknown
) { }
}