9 lines
200 B
TypeScript
9 lines
200 B
TypeScript
import { ClientEvents } from "discord.js";
|
|
|
|
export class Event<Key extends keyof ClientEvents>{
|
|
constructor(
|
|
public event: Key,
|
|
public run: (...args: ClientEvents[Key]) => unknown
|
|
) { }
|
|
}
|