diff options
author | TymanWasTaken <32660892+tymanwastaken@users.noreply.github.com> | 2021-05-12 02:41:34 -0600 |
---|---|---|
committer | TymanWasTaken <32660892+tymanwastaken@users.noreply.github.com> | 2021-05-12 02:41:34 -0600 |
commit | 8d6ebd83b16a465b11edfeb43f6a5e58da0076e8 (patch) | |
tree | 47be45c7cfad070eb3b07ecc64d26f2d3da83f87 /src/lib/extensions/BotCommand.ts | |
parent | 6cae6bf5faf97b7be15ef282f8d86c6db349036b (diff) | |
download | tanzanite-8d6ebd83b16a465b11edfeb43f6a5e58da0076e8.tar.gz tanzanite-8d6ebd83b16a465b11edfeb43f6a5e58da0076e8.tar.bz2 tanzanite-8d6ebd83b16a465b11edfeb43f6a5e58da0076e8.zip |
add level slash command
Diffstat (limited to 'src/lib/extensions/BotCommand.ts')
-rw-r--r-- | src/lib/extensions/BotCommand.ts | 7 |
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; } |