aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord-akairo/BushCommandUtil.ts
blob: 1e86401ff113f53fd7642083a7da3573dae21e3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { CommandUtil, ParsedComponentData } from 'discord-akairo';
import { Collection, Snowflake } from 'discord.js';
import { BushMessage } from '../discord.js/BushMessage';
import { BushCommand } from './BushCommand';
import { BushCommandHandler } from './BushCommandHandler';

export interface BushParsedComponentData extends ParsedComponentData {
	command?: BushCommand;
}

export class BushCommandUtil extends CommandUtil {
	public declare parsed?: BushParsedComponentData;
	public declare handler: BushCommandHandler;
	public declare message: BushMessage;
	public declare messages?: Collection<Snowflake, BushMessage>;
	// public test: string;

	public constructor(handler: BushCommandHandler, message: BushMessage) {
		super(handler, message);
		// this.test = 'abc';
	}
}