feat(Application): add webhook event fields to PATCH (#1570)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Almeida
2026-03-19 07:35:34 +00:00
committed by GitHub
parent 46b8cbd46f
commit e1ff008cd6
4 changed files with 12 additions and 4 deletions

View File

@@ -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<Pick<APIApplication, 'cover_image' | 'icon'>> &
_Nullable<Pick<APIApplication, 'cover_image' | 'event_webhooks_url' | 'icon'>> &
Pick<
APIApplication,
| 'custom_install_url'
| 'description'
| 'event_webhooks_status'
| 'event_webhooks_types'
| 'flags'
| 'install_params'
| 'integration_types_config'

View File

@@ -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<Pick<APIApplication, 'cover_image' | 'icon'>> &
_Nullable<Pick<APIApplication, 'cover_image' | 'event_webhooks_url' | 'icon'>> &
Pick<
APIApplication,
| 'custom_install_url'
| 'description'
| 'event_webhooks_status'
| 'event_webhooks_types'
| 'flags'
| 'install_params'
| 'integration_types_config'

View File

@@ -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<Pick<APIApplication, 'cover_image' | 'icon'>> &
_Nullable<Pick<APIApplication, 'cover_image' | 'event_webhooks_url' | 'icon'>> &
Pick<
APIApplication,
| 'custom_install_url'
| 'description'
| 'event_webhooks_status'
| 'event_webhooks_types'
| 'flags'
| 'install_params'
| 'integration_types_config'

View File

@@ -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<Pick<APIApplication, 'cover_image' | 'icon'>> &
_Nullable<Pick<APIApplication, 'cover_image' | 'event_webhooks_url' | 'icon'>> &
Pick<
APIApplication,
| 'custom_install_url'
| 'description'
| 'event_webhooks_status'
| 'event_webhooks_types'
| 'flags'
| 'install_params'
| 'integration_types_config'