forked from engineering/crv2
13 lines
371 B
TypeScript
13 lines
371 B
TypeScript
|
import { Client } from "discord.js";
|
||
|
export default abstract class DiscordEvent {
|
||
|
public name: string;
|
||
|
protected client: Client;
|
||
|
|
||
|
constructor(name: string = "", client: Client) {
|
||
|
this.name = name;
|
||
|
this.client = client;
|
||
|
this.execute = this.execute.bind(this);
|
||
|
}
|
||
|
public abstract execute(...args: any[]): Error | Promise<void>;
|
||
|
}
|