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

9 lines
194 B
TypeScript
Raw Normal View History

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