diff options
Diffstat (limited to 'src/lib/extensions/BushCommandHandler.ts')
-rw-r--r-- | src/lib/extensions/BushCommandHandler.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/extensions/BushCommandHandler.ts b/src/lib/extensions/BushCommandHandler.ts new file mode 100644 index 0000000..6ef44d7 --- /dev/null +++ b/src/lib/extensions/BushCommandHandler.ts @@ -0,0 +1,15 @@ +import { CommandHandler, CommandHandlerOptions } from 'discord-akairo'; +import { Collection } from 'discord.js'; +import { BushClient } from './BushClient'; +import { BushCommand } from './BushCommand'; + +export interface BushCommandHandlerOptions extends CommandHandlerOptions {} + +export class BushCommandHandler extends CommandHandler { + public constructor(client: BushClient, options: BushCommandHandlerOptions) { + super(client, options); + this.client = client; + } + + declare modules: Collection<string, BushCommand>; +} |