From c7b2b4d2dfc2e467dd004ca45d6e3c393979d78e Mon Sep 17 00:00:00 2001 From: keenkairos <83495194+keenkairos@users.noreply.github.com> Date: Sat, 1 May 2021 14:26:23 +0400 Subject: [PATCH] feat(types): add attachments field to EditWebhookMessage (#881) Reference: https://github.com/discord/discord-api-docs/commit/5afbad75892a907726ab47eea4d9bcbeabcdaa18 --- src/types/webhooks/edit_webhook_message.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/types/webhooks/edit_webhook_message.ts b/src/types/webhooks/edit_webhook_message.ts index 5b8275c98..7cb6f2940 100644 --- a/src/types/webhooks/edit_webhook_message.ts +++ b/src/types/webhooks/edit_webhook_message.ts @@ -1,6 +1,7 @@ import { Embed } from "../embeds/embed.ts"; import { AllowedMentions } from "../messages/allowed_mentions.ts"; -import { FileContent } from "../mod.ts"; +import { FileContent } from "../misc/file_content.ts"; +import { Attachment } from "../messages/attachment.ts"; /** https://discord.com/developers/docs/resources/webhook#edit-webhook-message-jsonform-params */ export interface EditWebhookMessage { @@ -12,4 +13,6 @@ export interface EditWebhookMessage { file: FileContent | FileContent[]; /** Allowed mentions for the message */ allowedMentions?: AllowedMentions | null; + /** Attached files to keep. */ + attachments?: Attachment | null; }