You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2b-bot-v2/src/lib/GuildCommand.ts

21 lines
524 B
TypeScript

import {Command} from "./Command";
import {Bot} from "../Bot";
import {GuildHandler} from "./GuildHandler";
/**
* An extended version for of the abstract command class that also requires the guild handler.
*/
export abstract class GuildCommand extends Command {
protected guildHandler: GuildHandler;
/**
* constructor
* @param bot
* @param guildHandler
*/
protected constructor(bot: Bot, guildHandler: GuildHandler) {
super(bot);
this.guildHandler = guildHandler;
}
}