aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/BotCommand.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/extensions/BotCommand.ts')
-rw-r--r--src/lib/extensions/BotCommand.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/extensions/BotCommand.ts b/src/lib/extensions/BotCommand.ts
index 79c7a9f..2db93b0 100644
--- a/src/lib/extensions/BotCommand.ts
+++ b/src/lib/extensions/BotCommand.ts
@@ -1,9 +1,14 @@
import { Command, CommandOptions } from 'discord-akairo';
+import { APIApplicationCommandOption } from 'discord-api-types';
import { BotClient } from './BotClient';
+export interface BotCommandOptions extends CommandOptions {
+ slashCommandOptions?: APIApplicationCommandOption[];
+}
+
export class BotCommand extends Command {
public client: BotClient;
- constructor(id: string, options?: CommandOptions) {
+ constructor(id: string, options?: BotCommandOptions) {
super(id, options);
this.options = options;
}