Skip to content

Commit

Permalink
refactor(APIGuildScheduledEventBase): make description nullable (#359)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The type for `description` can also be null, not just optional
  • Loading branch information
almeidx committed Mar 9, 2022
1 parent 9a57848 commit e5710d0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deno/payloads/v10/guildScheduledEvent.ts
Expand Up @@ -26,7 +26,7 @@ interface APIGuildScheduledEventBase<Type extends GuildScheduledEventEntityType>
/**
* The description of the scheduled event
*/
description?: string;
description?: string | null;
/**
* The time the scheduled event will start
*/
Expand Down
2 changes: 1 addition & 1 deletion deno/payloads/v9/guildScheduledEvent.ts
Expand Up @@ -26,7 +26,7 @@ interface APIGuildScheduledEventBase<Type extends GuildScheduledEventEntityType>
/**
* The description of the scheduled event
*/
description?: string;
description?: string | null;
/**
* The time the scheduled event will start
*/
Expand Down
2 changes: 1 addition & 1 deletion payloads/v10/guildScheduledEvent.ts
Expand Up @@ -26,7 +26,7 @@ interface APIGuildScheduledEventBase<Type extends GuildScheduledEventEntityType>
/**
* The description of the scheduled event
*/
description?: string;
description?: string | null;
/**
* The time the scheduled event will start
*/
Expand Down
2 changes: 1 addition & 1 deletion payloads/v9/guildScheduledEvent.ts
Expand Up @@ -26,7 +26,7 @@ interface APIGuildScheduledEventBase<Type extends GuildScheduledEventEntityType>
/**
* The description of the scheduled event
*/
description?: string;
description?: string | null;
/**
* The time the scheduled event will start
*/
Expand Down

0 comments on commit e5710d0

Please sign in to comment.