From 673c03f7cf55379ed1cf7fafed3b81dbdde3a343 Mon Sep 17 00:00:00 2001 From: Indian Ocean Roleplay Date: Fri, 29 Oct 2021 23:08:21 +0530 Subject: [PATCH] types(fix): BaseCommandInteractionOptionResolver and CommandInteraction (#6910) --- typings/index.d.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index a6abbef01..0bae1df1d 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -280,6 +280,7 @@ export abstract class BaseCommandInteraction | null; public options: Omit< CommandInteractionOptionResolver, + | 'getMessage' | 'getFocused' | 'getMentionable' | 'getRole' @@ -602,7 +603,7 @@ export abstract class Collector extends EventEmi } export interface ApplicationCommandInteractionOptionResolver - extends BaseCommandInteractionOptionResolver { + extends CommandInteractionOptionResolver { getSubcommand(required?: true): string; getSubcommand(required: boolean): string | null; getSubcommandGroup(required?: true): string; @@ -714,6 +715,19 @@ export class CommandInteractionOptionResolver extends BaseCommandInteraction { + public options: Omit< + CommandInteractionOptionResolver, + | 'getFocused' + | 'getMentionable' + | 'getRole' + | 'getNumber' + | 'getInteger' + | 'getString' + | 'getChannel' + | 'getBoolean' + | 'getSubcommandGroup' + | 'getSubcommand' + >; public targetId: Snowflake; public targetType: Exclude; private resolveContextMenuOptions(data: APIApplicationCommandInteractionData): CommandInteractionOption[];