From 521d26c57f3f615e5355ba3c78d2ffea14e685a3 Mon Sep 17 00:00:00 2001 From: Hackerboi 69 <62872992+thehackerboi69github@users.noreply.github.com> Date: Thu, 1 Jul 2021 18:37:25 +0200 Subject: [PATCH] types(Interactions): fix function overload types (#5989) --- typings/index.d.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 3830032f3..d744849af 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -578,9 +578,7 @@ declare module 'discord.js' { public editReply(options: string | MessagePayload | WebhookEditMessageOptions): Promise; public fetchReply(): Promise; public followUp(options: string | MessagePayload | InteractionReplyOptions): Promise; - public reply( - options: string | MessagePayload | (InteractionReplyOptions & { fetchReply: true }), - ): Promise; + public reply(options: InteractionReplyOptions & { fetchReply: true }): Promise; public reply(options: string | MessagePayload | InteractionReplyOptions): Promise; private transformOption(option: unknown, resolved: unknown): CommandInteractionOption; private _createOptionsCollection(options: unknown, resolved: unknown): Collection; @@ -1443,13 +1441,9 @@ declare module 'discord.js' { public editReply(options: string | MessagePayload | WebhookEditMessageOptions): Promise; public fetchReply(): Promise; public followUp(options: string | MessagePayload | InteractionReplyOptions): Promise; - public reply( - options: string | MessagePayload | (InteractionReplyOptions & { fetchReply: true }), - ): Promise; + public reply(options: InteractionReplyOptions & { fetchReply: true }): Promise; public reply(options: string | MessagePayload | InteractionReplyOptions): Promise; - public update( - content: string | MessagePayload | (InteractionUpdateOptions & { fetchReply: true }), - ): Promise; + public update(content: InteractionUpdateOptions & { fetchReply: true }): Promise; public update(content: string | MessagePayload | InteractionUpdateOptions): Promise; public static resolveType(type: MessageComponentTypeResolvable): MessageComponentType;