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
|
|
|
}
|