From e1ff008cd697cf0dd0185ed2d8aba653c6be91e4 Mon Sep 17 00:00:00 2001 From: Almeida Date: Thu, 19 Mar 2026 07:35:34 +0000 Subject: [PATCH] feat(Application): add webhook event fields to PATCH (#1570) Co-authored-by: Claude Opus 4.6 (1M context) --- deno/rest/v10/application.ts | 4 +++- deno/rest/v9/application.ts | 4 +++- rest/v10/application.ts | 4 +++- rest/v9/application.ts | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/deno/rest/v10/application.ts b/deno/rest/v10/application.ts index c7b10fc0..64ac4c69 100644 --- a/deno/rest/v10/application.ts +++ b/deno/rest/v10/application.ts @@ -25,11 +25,13 @@ export type RESTGetCurrentApplicationResult = APIApplication; * @see {@link https://discord.com/developers/docs/resources/application#edit-current-application} */ export type RESTPatchCurrentApplicationJSONBody = _StrictPartial< - _Nullable> & + _Nullable> & Pick< APIApplication, | 'custom_install_url' | 'description' + | 'event_webhooks_status' + | 'event_webhooks_types' | 'flags' | 'install_params' | 'integration_types_config' diff --git a/deno/rest/v9/application.ts b/deno/rest/v9/application.ts index 12978ae3..7294a0a6 100644 --- a/deno/rest/v9/application.ts +++ b/deno/rest/v9/application.ts @@ -25,11 +25,13 @@ export type RESTGetCurrentApplicationResult = APIApplication; * @see {@link https://discord.com/developers/docs/resources/application#edit-current-application} */ export type RESTPatchCurrentApplicationJSONBody = _StrictPartial< - _Nullable> & + _Nullable> & Pick< APIApplication, | 'custom_install_url' | 'description' + | 'event_webhooks_status' + | 'event_webhooks_types' | 'flags' | 'install_params' | 'integration_types_config' diff --git a/rest/v10/application.ts b/rest/v10/application.ts index 164316f3..c56de605 100644 --- a/rest/v10/application.ts +++ b/rest/v10/application.ts @@ -25,11 +25,13 @@ export type RESTGetCurrentApplicationResult = APIApplication; * @see {@link https://discord.com/developers/docs/resources/application#edit-current-application} */ export type RESTPatchCurrentApplicationJSONBody = _StrictPartial< - _Nullable> & + _Nullable> & Pick< APIApplication, | 'custom_install_url' | 'description' + | 'event_webhooks_status' + | 'event_webhooks_types' | 'flags' | 'install_params' | 'integration_types_config' diff --git a/rest/v9/application.ts b/rest/v9/application.ts index a7209f77..4f54813a 100644 --- a/rest/v9/application.ts +++ b/rest/v9/application.ts @@ -25,11 +25,13 @@ export type RESTGetCurrentApplicationResult = APIApplication; * @see {@link https://discord.com/developers/docs/resources/application#edit-current-application} */ export type RESTPatchCurrentApplicationJSONBody = _StrictPartial< - _Nullable> & + _Nullable> & Pick< APIApplication, | 'custom_install_url' | 'description' + | 'event_webhooks_status' + | 'event_webhooks_types' | 'flags' | 'install_params' | 'integration_types_config'