vylbot-app/src/type/command.ts
Vylpes 18e3f3d800
110 commandshelp about command errors which causes command to not run (#126)
* Change onMessage to onMessageCreate

* Fix help command
2022-04-15 16:12:46 +01:00

23 lines
553 B
TypeScript

import { CommandResponse } from "../constants/CommandResponse";
import { ICommandContext } from "../contracts/ICommandContext";
export class Command {
public Roles: string[];
public Category?: string;
constructor() {
this.Roles = [];
}
public precheck(context: ICommandContext): CommandResponse {
return CommandResponse.Ok;
}
public async precheckAsync(context: ICommandContext): Promise<CommandResponse> {
return CommandResponse.Ok;
}
public execute(context: ICommandContext) {
}
}