From f67043b3f46eea7286e959d223b78d140deac318 Mon Sep 17 00:00:00 2001 From: Almeida Date: Mon, 19 Aug 2024 15:48:33 +0100 Subject: [PATCH] fix: nullable fields for scheduled event editing (#1064) --- deno/rest/v10/guildScheduledEvent.ts | 4 +++- deno/rest/v9/guildScheduledEvent.ts | 4 +++- rest/v10/guildScheduledEvent.ts | 4 +++- rest/v9/guildScheduledEvent.ts | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/deno/rest/v10/guildScheduledEvent.ts b/deno/rest/v10/guildScheduledEvent.ts index 67e9f50c7..408c65c63 100644 --- a/deno/rest/v10/guildScheduledEvent.ts +++ b/deno/rest/v10/guildScheduledEvent.ts @@ -97,7 +97,9 @@ export type RESTGetAPIGuildScheduledEventResult = APIGuildScheduledEvent; export type RESTPatchAPIGuildScheduledEventJSONBody = Nullable< Pick > & - StrictPartial> & { + StrictPartial< + Omit + > & { /** * The status of the scheduled event */ diff --git a/deno/rest/v9/guildScheduledEvent.ts b/deno/rest/v9/guildScheduledEvent.ts index 5bce8b1e0..d7dfc897e 100644 --- a/deno/rest/v9/guildScheduledEvent.ts +++ b/deno/rest/v9/guildScheduledEvent.ts @@ -97,7 +97,9 @@ export type RESTGetAPIGuildScheduledEventResult = APIGuildScheduledEvent; export type RESTPatchAPIGuildScheduledEventJSONBody = Nullable< Pick > & - StrictPartial> & { + StrictPartial< + Omit + > & { /** * The status of the scheduled event */ diff --git a/rest/v10/guildScheduledEvent.ts b/rest/v10/guildScheduledEvent.ts index 9b5a14455..134f13f75 100644 --- a/rest/v10/guildScheduledEvent.ts +++ b/rest/v10/guildScheduledEvent.ts @@ -97,7 +97,9 @@ export type RESTGetAPIGuildScheduledEventResult = APIGuildScheduledEvent; export type RESTPatchAPIGuildScheduledEventJSONBody = Nullable< Pick > & - StrictPartial> & { + StrictPartial< + Omit + > & { /** * The status of the scheduled event */ diff --git a/rest/v9/guildScheduledEvent.ts b/rest/v9/guildScheduledEvent.ts index 54e30a941..94eb6b840 100644 --- a/rest/v9/guildScheduledEvent.ts +++ b/rest/v9/guildScheduledEvent.ts @@ -97,7 +97,9 @@ export type RESTGetAPIGuildScheduledEventResult = APIGuildScheduledEvent; export type RESTPatchAPIGuildScheduledEventJSONBody = Nullable< Pick > & - StrictPartial> & { + StrictPartial< + Omit + > & { /** * The status of the scheduled event */