crv2/util/DiscordEvent.ts

13 lines
361 B
TypeScript
Raw Normal View History

2024-03-19 17:41:20 -04:00
import { Client } from "discord.js";
export default abstract class DiscordEvent {
2024-10-25 16:57:33 -04:00
public name: string;
protected client: Client;
2024-03-19 17:41:20 -04:00
2024-10-25 16:57:33 -04:00
protected constructor(name: string = "", client: Client) {
this.name = name;
this.client = client;
this.execute = this.execute.bind(this);
}
2024-11-09 18:14:49 -05:00
public abstract execute(...args: never[]): Error | Promise<void>;
2024-03-19 17:41:20 -04:00
}