From 76cf52cd0d0354978bfc843aac8a57b13fe10c87 Mon Sep 17 00:00:00 2001 From: Milo <50248166+Milo123459@users.noreply.github.com> Date: Tue, 17 Aug 2021 23:49:26 +0300 Subject: [PATCH] chore(Typings): fix WebhookEditMessageOptions not having attachments (#6430) --- src/structures/Webhook.js | 1 + src/structures/interfaces/TextBasedChannel.js | 1 + typings/index.d.ts | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/structures/Webhook.js b/src/structures/Webhook.js index 5fe1d78f0..91b9838c4 100644 --- a/src/structures/Webhook.js +++ b/src/structures/Webhook.js @@ -102,6 +102,7 @@ class Webhook { * @property {string} [content] See {@link BaseMessageOptions#content} * @property {FileOptions[]|BufferResolvable[]|MessageAttachment[]} [files] See {@link BaseMessageOptions#files} * @property {MessageMentionOptions} [allowedMentions] See {@link BaseMessageOptions#allowedMentions} + * @property {MessageAttachment[]} [attachments] Attachments to send with the message * @property {MessageActionRow[]|MessageActionRowOptions[]} [components] * Action rows containing interactive components for the message (buttons, select menus) */ diff --git a/src/structures/interfaces/TextBasedChannel.js b/src/structures/interfaces/TextBasedChannel.js index dee00b89f..99038ecc3 100644 --- a/src/structures/interfaces/TextBasedChannel.js +++ b/src/structures/interfaces/TextBasedChannel.js @@ -66,6 +66,7 @@ class TextBasedChannel { * @property {MessageActionRow[]|MessageActionRowOptions[]} [components] * Action rows containing interactive components for the message (buttons, select menus) * @property {StickerResolvable[]} [stickers=[]] Stickers to send in the message + * @property {MessageAttachment[]} [attachments] Attachments to send in the message */ /** diff --git a/typings/index.d.ts b/typings/index.d.ts index cf6fdacbd..c808c2cd2 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -4185,6 +4185,7 @@ export interface MessageOptions { files?: (FileOptions | BufferResolvable | Stream | MessageAttachment)[]; reply?: ReplyOptions; stickers?: StickerResolvable[]; + attachments?: MessageAttachment[]; } export type MessageReactionResolvable = @@ -4629,7 +4630,7 @@ export interface WebhookEditData { export type WebhookEditMessageOptions = Pick< WebhookMessageOptions, - 'content' | 'embeds' | 'files' | 'allowedMentions' | 'components' + 'content' | 'embeds' | 'files' | 'allowedMentions' | 'components' | 'attachments' >; export interface WebhookMessageOptions extends Omit {