diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-23 18:09:55 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-23 18:09:55 -0400 |
commit | 36ff682e742021918d134ff91a2bee3041b5a2b9 (patch) | |
tree | 979fb8a10eb7f210989ed3272754ab3f001641f5 /src/lib/extensions/discord-akairo/BushCommandUtil.ts | |
parent | 44521f4560dc8b0bab055685437d8fa65a34377f (diff) | |
download | tanzanite-36ff682e742021918d134ff91a2bee3041b5a2b9.tar.gz tanzanite-36ff682e742021918d134ff91a2bee3041b5a2b9.tar.bz2 tanzanite-36ff682e742021918d134ff91a2bee3041b5a2b9.zip |
a ton of bug fixes
Diffstat (limited to 'src/lib/extensions/discord-akairo/BushCommandUtil.ts')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushCommandUtil.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/extensions/discord-akairo/BushCommandUtil.ts b/src/lib/extensions/discord-akairo/BushCommandUtil.ts index bda0e74..7720d57 100644 --- a/src/lib/extensions/discord-akairo/BushCommandUtil.ts +++ b/src/lib/extensions/discord-akairo/BushCommandUtil.ts @@ -4,18 +4,19 @@ import { Collection } from 'discord.js'; import { BushMessage } from '../discord.js/BushMessage'; import { BushCommand } from './BushCommand'; import { BushCommandHandler } from './BushCommandHandler'; +import { BushSlashMessage } from './BushSlashMessage'; export interface BushParsedComponentData extends ParsedComponentData { command?: BushCommand; } -export class BushCommandUtil extends CommandUtil { +export class BushCommandUtil<BushMessageType extends BushMessage | BushSlashMessage> extends CommandUtil<BushMessageType> { public declare parsed: BushParsedComponentData | null; public declare handler: BushCommandHandler; - public declare message: BushMessage; + public declare message: BushMessageType; public declare messages: Collection<Snowflake, BushMessage> | null; - public constructor(handler: BushCommandHandler, message: BushMessage) { + public constructor(handler: BushCommandHandler, message: BushMessageType) { super(handler, message); } } |