Skip to content

Commit

Permalink
fix: nullable fields
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx authored Aug 19, 2024
1 parent 19d2aeb commit b6a777b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion deno/rest/v10/guildScheduledEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export type RESTGetAPIGuildScheduledEventResult = APIGuildScheduledEvent;
export type RESTPatchAPIGuildScheduledEventJSONBody = Nullable<
Pick<RESTPostAPIGuildScheduledEventJSONBody, 'description' | 'entity_metadata' | 'recurrence_rule'>
> &
StrictPartial<Omit<RESTPostAPIGuildScheduledEventJSONBody, 'recurrence_rule'>> & {
StrictPartial<
Omit<RESTPostAPIGuildScheduledEventJSONBody, 'description' | 'entity_metadata' | 'recurrence_rule'>
> & {
/**
* The status of the scheduled event
*/
Expand Down
4 changes: 3 additions & 1 deletion deno/rest/v9/guildScheduledEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export type RESTGetAPIGuildScheduledEventResult = APIGuildScheduledEvent;
export type RESTPatchAPIGuildScheduledEventJSONBody = Nullable<
Pick<RESTPostAPIGuildScheduledEventJSONBody, 'description' | 'entity_metadata' | 'recurrence_rule'>
> &
StrictPartial<Omit<RESTPostAPIGuildScheduledEventJSONBody, 'recurrence_rule'>> & {
StrictPartial<
Omit<RESTPostAPIGuildScheduledEventJSONBody, 'description' | 'entity_metadata' | 'recurrence_rule'>
> & {
/**
* The status of the scheduled event
*/
Expand Down
4 changes: 3 additions & 1 deletion rest/v10/guildScheduledEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export type RESTGetAPIGuildScheduledEventResult = APIGuildScheduledEvent;
export type RESTPatchAPIGuildScheduledEventJSONBody = Nullable<
Pick<RESTPostAPIGuildScheduledEventJSONBody, 'description' | 'entity_metadata' | 'recurrence_rule'>
> &
StrictPartial<Omit<RESTPostAPIGuildScheduledEventJSONBody, 'recurrence_rule'>> & {
StrictPartial<
Omit<RESTPostAPIGuildScheduledEventJSONBody, 'description' | 'entity_metadata' | 'recurrence_rule'>
> & {
/**
* The status of the scheduled event
*/
Expand Down
4 changes: 3 additions & 1 deletion rest/v9/guildScheduledEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export type RESTGetAPIGuildScheduledEventResult = APIGuildScheduledEvent;
export type RESTPatchAPIGuildScheduledEventJSONBody = Nullable<
Pick<RESTPostAPIGuildScheduledEventJSONBody, 'description' | 'entity_metadata' | 'recurrence_rule'>
> &
StrictPartial<Omit<RESTPostAPIGuildScheduledEventJSONBody, 'recurrence_rule'>> & {
StrictPartial<
Omit<RESTPostAPIGuildScheduledEventJSONBody, 'description' | 'entity_metadata' | 'recurrence_rule'>
> & {
/**
* The status of the scheduled event
*/
Expand Down

0 comments on commit b6a777b

Please sign in to comment.