From 5a5fe556a6f6372888fce6723f3dd1eaecf925bf Mon Sep 17 00:00:00 2001 From: Milo <50248166+Milo123459@users.noreply.github.com> Date: Wed, 21 Jul 2021 11:13:42 +0100 Subject: [PATCH 1/4] fix(Typings): type attachments with never --- typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 00a1f4d16bc2..e7cee3325755 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -3810,7 +3810,7 @@ export type MessageComponentType = keyof typeof MessageComponentTypes; export type MessageComponentTypeResolvable = MessageComponentType | MessageComponentTypes; export interface MessageEditOptions { - attachments?: MessageAttachment[]; + attachments?: Array; content?: string | null; embeds?: (MessageEmbed | MessageEmbedOptions)[] | null; files?: (FileOptions | BufferResolvable | Stream | MessageAttachment)[]; From c50c8ece2d6b2a21c65e47be55ed8a1bf32d2f9a Mon Sep 17 00:00:00 2001 From: Milo <50248166+Milo123459@users.noreply.github.com> Date: Wed, 21 Jul 2021 11:26:15 +0100 Subject: [PATCH 2/4] Update typings/index.d.ts Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com> --- typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index e7cee3325755..2fcd1748f152 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -3810,7 +3810,7 @@ export type MessageComponentType = keyof typeof MessageComponentTypes; export type MessageComponentTypeResolvable = MessageComponentType | MessageComponentTypes; export interface MessageEditOptions { - attachments?: Array; + attachments?: (MessageAttachment | never)[]; content?: string | null; embeds?: (MessageEmbed | MessageEmbedOptions)[] | null; files?: (FileOptions | BufferResolvable | Stream | MessageAttachment)[]; From ff4df89d526ddf2a8548ed77f1b00d3d8bfaaa71 Mon Sep 17 00:00:00 2001 From: Milo <50248166+Milo123459@users.noreply.github.com> Date: Wed, 21 Jul 2021 13:40:52 +0100 Subject: [PATCH 3/4] chore(Typings): fix --- typings/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 2fcd1748f152..c05d48436d60 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -3694,7 +3694,7 @@ export type InteractionResponseType = keyof typeof InteractionResponseTypes; export type InteractionType = keyof typeof InteractionTypes; -export type InteractionUpdateOptions = Omit; +export type InteractionUpdateOptions = MessageEditOptions; export type IntentsString = | 'GUILDS' @@ -3810,7 +3810,7 @@ export type MessageComponentType = keyof typeof MessageComponentTypes; export type MessageComponentTypeResolvable = MessageComponentType | MessageComponentTypes; export interface MessageEditOptions { - attachments?: (MessageAttachment | never)[]; + attachments?: MessageAttachment[]; content?: string | null; embeds?: (MessageEmbed | MessageEmbedOptions)[] | null; files?: (FileOptions | BufferResolvable | Stream | MessageAttachment)[]; From 52a8c31b1f515e1089d6c1314f4d4eabf19ed48a Mon Sep 17 00:00:00 2001 From: Milo <50248166+Milo123459@users.noreply.github.com> Date: Wed, 21 Jul 2021 13:45:04 +0100 Subject: [PATCH 4/4] chore(Typings): add fetchReply --- typings/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index c05d48436d60..fb8049acbf2c 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -3694,7 +3694,9 @@ export type InteractionResponseType = keyof typeof InteractionResponseTypes; export type InteractionType = keyof typeof InteractionTypes; -export type InteractionUpdateOptions = MessageEditOptions; +export interface InteractionUpdateOptions extends MessageEditOptions { + fetchReply?: boolean; +} export type IntentsString = | 'GUILDS'