aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/extensions/discord-akairo/BushCommand.ts8
-rw-r--r--src/lib/extensions/discord-akairo/BushTaskHandler.ts4
2 files changed, 4 insertions, 8 deletions
diff --git a/src/lib/extensions/discord-akairo/BushCommand.ts b/src/lib/extensions/discord-akairo/BushCommand.ts
index 414da09..dc2295f 100644
--- a/src/lib/extensions/discord-akairo/BushCommand.ts
+++ b/src/lib/extensions/discord-akairo/BushCommand.ts
@@ -359,7 +359,7 @@ export interface ArgsInfo {
superUserOnly?: boolean;
}
-export class BushCommand extends Command {
+export abstract class BushCommand extends Command {
public declare client: BushClient;
public declare handler: BushCommandHandler;
public declare description: string;
@@ -539,21 +539,19 @@ export class BushCommand extends Command {
this.bypassChannelBlacklist = !!options_.bypassChannelBlacklist;
this.note = options_.note;
}
-}
-export interface BushCommand extends Command {
/**
* Executes the command.
* @param message - Message that triggered the command.
* @param args - Evaluated arguments.
*/
- exec(message: CommandMessage, args: any): any;
+ public abstract override exec(message: CommandMessage, args: any): any;
/**
* Executes the command.
* @param message - Message that triggered the command.
* @param args - Evaluated arguments.
*/
- exec(message: CommandMessage | SlashMessage, args: any): any;
+ public abstract override exec(message: CommandMessage | SlashMessage, args: any): any;
}
type SlashOptionKeys =
diff --git a/src/lib/extensions/discord-akairo/BushTaskHandler.ts b/src/lib/extensions/discord-akairo/BushTaskHandler.ts
index f667ead..6535abb 100644
--- a/src/lib/extensions/discord-akairo/BushTaskHandler.ts
+++ b/src/lib/extensions/discord-akairo/BushTaskHandler.ts
@@ -1,5 +1,3 @@
-import { TaskHandler, type AkairoHandlerOptions } from 'discord-akairo';
-
-export type BushTaskHandlerOptions = AkairoHandlerOptions;
+import { TaskHandler } from 'discord-akairo';
export class BushTaskHandler extends TaskHandler {}