From 17695e2ccb85ded8d14278d37c292fbb8d0f5cd2 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Mon, 3 May 2021 20:18:53 +0200 Subject: [PATCH] all are optional --- src/types/webhooks/execute_webhook.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types/webhooks/execute_webhook.ts b/src/types/webhooks/execute_webhook.ts index 4e3a956a0..f668a0906 100644 --- a/src/types/webhooks/execute_webhook.ts +++ b/src/types/webhooks/execute_webhook.ts @@ -16,11 +16,11 @@ export interface ExecuteWebhook { /** True if this is a TTS message */ tts?: boolean; /** The contents of the file being sent */ - file: FileContent | FileContent[]; + file?: FileContent | FileContent[]; /** Embedded `rich` content */ - embeds: Embed[]; + embeds?: Embed[]; /** Allowed mentions for the message */ - allowedMentions: AllowedMentions; + allowedMentions?: AllowedMentions; } export type DiscordExecuteWebhook = SnakeCasedPropertiesDeep<