node-event-bot/server/structures/event.ts

9 lines
190 B
TypeScript
Raw Permalink Normal View History

2022-04-12 22:39:47 +02:00
import { ClientEvents } from "discord.js";
export class Event<Key extends keyof ClientEvents>{
constructor(
public event: Key,
public run: (...args: ClientEvents[Key]) => any
) { }
}