Skip to content

Commit

Permalink
fix(APIInvite): channel can be null (#182)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: this marks the channel property of invites as possibly null
  • Loading branch information
advaith1 committed Dec 7, 2021
1 parent e9d02a1 commit c67d426
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deno/payloads/v8/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface APIInvite {
*
* See https://discord.com/developers/docs/resources/channel#channel-object
*/
channel: Required<APIPartialChannel>;
channel: Required<APIPartialChannel> | null;
/**
* The user who created the invite
*
Expand Down
2 changes: 1 addition & 1 deletion deno/payloads/v9/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface APIInvite {
*
* See https://discord.com/developers/docs/resources/channel#channel-object
*/
channel: Required<APIPartialChannel>;
channel: Required<APIPartialChannel> | null;
/**
* The user who created the invite
*
Expand Down
2 changes: 1 addition & 1 deletion payloads/v8/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface APIInvite {
*
* See https://discord.com/developers/docs/resources/channel#channel-object
*/
channel: Required<APIPartialChannel>;
channel: Required<APIPartialChannel> | null;
/**
* The user who created the invite
*
Expand Down
2 changes: 1 addition & 1 deletion payloads/v9/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface APIInvite {
*
* See https://discord.com/developers/docs/resources/channel#channel-object
*/
channel: Required<APIPartialChannel>;
channel: Required<APIPartialChannel> | null;
/**
* The user who created the invite
*
Expand Down

0 comments on commit c67d426

Please sign in to comment.