node-event-bot/server/structures/event.ts
mightypanders 9df18575fd
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
implement auto repeating events
2022-04-12 22:39:47 +02:00

9 lines
190 B
TypeScript

import { ClientEvents } from "discord.js";
export class Event<Key extends keyof ClientEvents>{
constructor(
public event: Key,
public run: (...args: ClientEvents[Key]) => any
) { }
}