import { type BushCommand, type BushCommandHandler, type BushMessage, type BushSlashMessage } from '#lib'; import { CommandUtil, type ParsedComponentData } from 'discord-akairo'; import { type Collection, type Snowflake } from 'discord.js'; export interface BushParsedComponentData extends ParsedComponentData { command?: BushCommand; } export class BushCommandUtil extends CommandUtil { public declare parsed: BushParsedComponentData | null; public declare handler: BushCommandHandler; public declare message: BushMessageType; public declare messages: Collection | null; public constructor(handler: BushCommandHandler, message: BushMessageType) { super(handler, message); } } export interface BushCommandUtil extends CommandUtil { isSlashMessage(message: BushMessage | BushSlashMessage): message is BushSlashMessage; }