diff --git a/typings/index.d.ts b/typings/index.d.ts index a6abbef01477..0bae1df1d7a0 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[];