From 2106cdc1d033f88b6ee4ccca6754fe7a595a9328 Mon Sep 17 00:00:00 2001 From: jacob Date: Mon, 12 Aug 2024 21:28:22 -0500 Subject: [PATCH] fix: type issue --- src/types/core-plugin.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/types/core-plugin.ts b/src/types/core-plugin.ts index 9e1f631..629b541 100644 --- a/src/types/core-plugin.ts +++ b/src/types/core-plugin.ts @@ -22,6 +22,7 @@ import type { Context } from '../core/structures/context' import type { ButtonInteraction, ChannelSelectMenuInteraction, + ChatInputCommandInteraction, MentionableSelectMenuInteraction, MessageContextMenuCommandInteraction, ModalSubmitInteraction, @@ -56,8 +57,8 @@ export type AnyPlugin = ControlPlugin | InitPlugin<[InitArgs>] export type CommandArgs = CommandArgsMatrix[I] interface CommandArgsMatrix { - [CommandType.Text]: [Context, SDT]; - [CommandType.Slash]: [Context, SDT]; + [CommandType.Text]: [Context & { get options(): string[]}, SDT]; + [CommandType.Slash]: [Context & { get options(): ChatInputCommandInteraction['options']}, SDT]; [CommandType.Both]: [Context, SDT]; [CommandType.CtxMsg]: [MessageContextMenuCommandInteraction, SDT]; [CommandType.CtxUser]: [UserContextMenuCommandInteraction, SDT];