mightypanders
66f843b399
All checks were successful
Compile the repository / compile (pull_request) Successful in 1m12s
9 lines
194 B
TypeScript
9 lines
194 B
TypeScript
import { ClientEvents } from "discord.js";
|
|
|
|
export class Event<Key extends keyof ClientEvents>{
|
|
constructor(
|
|
public event: Key,
|
|
public run: (...args: ClientEvents[Key]) => unknown
|
|
) { }
|
|
}
|