From 9e6620a171c0ddc3025d9f9567c28d248a5f0816 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Sat, 1 May 2021 20:37:23 +0100 Subject: [PATCH 1/2] fix(types): file param is optional --- src/types/webhooks/edit_webhook_message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/webhooks/edit_webhook_message.ts b/src/types/webhooks/edit_webhook_message.ts index 4076c5cb8..6317c70fe 100644 --- a/src/types/webhooks/edit_webhook_message.ts +++ b/src/types/webhooks/edit_webhook_message.ts @@ -10,7 +10,7 @@ export interface EditWebhookMessage { /** Embedded `rich` content */ embeds?: Embed[] | null; /** The contents of the file being sent/edited */ - file: FileContent | FileContent[]; + file?: FileContent | FileContent[]; /** Allowed mentions for the message */ allowedMentions?: AllowedMentions | null; /** Attached files to keep */ From dfe822f4d2dcd3e09a35cf5ba6b4c5f39831df83 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Sun, 2 May 2021 00:35:16 +0200 Subject: [PATCH 2/2] fix(types): messageId is optional --- src/types/discordeno/edit_webhook_message.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/discordeno/edit_webhook_message.ts b/src/types/discordeno/edit_webhook_message.ts index 97ee0af14..f0cc429f2 100644 --- a/src/types/discordeno/edit_webhook_message.ts +++ b/src/types/discordeno/edit_webhook_message.ts @@ -1,6 +1,6 @@ import { EditWebhookMessage } from "../webhooks/edit_webhook_message.ts"; export interface DiscordenoEditWebhookMessage extends EditWebhookMessage { - /** Id of the message you want to edit */ - messageId: string; + /** Id of the message you want to edit if undefined the initial response message will be edited */ + messageId?: string; }