From eff8892b03656cfc2b709c6c30edb98e38bf2a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=2E=20Rom=C3=A1n?= Date: Mon, 6 Jun 2022 17:56:48 +0200 Subject: [PATCH] fix(RESTPostAPIWebhookWithTokenJSONBody): `thread_name` should be optional (#479) --- deno/rest/v10/webhook.ts | 2 +- deno/rest/v9/webhook.ts | 2 +- rest/v10/webhook.ts | 2 +- rest/v9/webhook.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno/rest/v10/webhook.ts b/deno/rest/v10/webhook.ts index d77f7036..eaea4f9a 100644 --- a/deno/rest/v10/webhook.ts +++ b/deno/rest/v10/webhook.ts @@ -149,7 +149,7 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine * * Available only if the webhook is in a forum channel and a thread is not specified in {@link RESTPostAPIWebhookWithTokenQuery.thread_id} query parameter */ - thread_name: string; + thread_name?: string; }>; /** diff --git a/deno/rest/v9/webhook.ts b/deno/rest/v9/webhook.ts index 38c4dc6b..7005a254 100644 --- a/deno/rest/v9/webhook.ts +++ b/deno/rest/v9/webhook.ts @@ -149,7 +149,7 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine * * Available only if the webhook is in a forum channel and a thread is not specified in {@link RESTPostAPIWebhookWithTokenQuery.thread_id} query parameter */ - thread_name: string; + thread_name?: string; }>; /** diff --git a/rest/v10/webhook.ts b/rest/v10/webhook.ts index f60d29f1..bcd8adc6 100644 --- a/rest/v10/webhook.ts +++ b/rest/v10/webhook.ts @@ -149,7 +149,7 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine * * Available only if the webhook is in a forum channel and a thread is not specified in {@link RESTPostAPIWebhookWithTokenQuery.thread_id} query parameter */ - thread_name: string; + thread_name?: string; }>; /** diff --git a/rest/v9/webhook.ts b/rest/v9/webhook.ts index 8bfc39d6..d94c9a15 100644 --- a/rest/v9/webhook.ts +++ b/rest/v9/webhook.ts @@ -149,7 +149,7 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine * * Available only if the webhook is in a forum channel and a thread is not specified in {@link RESTPostAPIWebhookWithTokenQuery.thread_id} query parameter */ - thread_name: string; + thread_name?: string; }>; /**