Skip to content

Commit

Permalink
fix(Guild): union with never type (#797)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcos Susaña <marcosjgs03@gmail.com>
  • Loading branch information
MARCROCK22 and socram03 authored Aug 14, 2023
1 parent 138b9f2 commit b919e72
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deno/rest/v10/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export interface RESTPutAPIGuildMemberJSONBody {
deaf?: boolean | undefined;
}

export type RESTPutAPIGuildMemberResult = APIGuildMember | never;
export type RESTPutAPIGuildMemberResult = APIGuildMember | undefined;

/**
* https://discord.com/developers/docs/resources/guild#modify-guild-member
Expand Down
2 changes: 1 addition & 1 deletion deno/rest/v8/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export interface RESTPutAPIGuildMemberJSONBody {
/**
* @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
*/
export type RESTPutAPIGuildMemberResult = APIGuildMember | never;
export type RESTPutAPIGuildMemberResult = APIGuildMember | undefined;

/**
* https://discord.com/developers/docs/resources/guild#modify-guild-member
Expand Down
2 changes: 1 addition & 1 deletion deno/rest/v9/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export interface RESTPutAPIGuildMemberJSONBody {
deaf?: boolean | undefined;
}

export type RESTPutAPIGuildMemberResult = APIGuildMember | never;
export type RESTPutAPIGuildMemberResult = APIGuildMember | undefined;

/**
* https://discord.com/developers/docs/resources/guild#modify-guild-member
Expand Down
2 changes: 1 addition & 1 deletion rest/v10/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export interface RESTPutAPIGuildMemberJSONBody {
deaf?: boolean | undefined;
}

export type RESTPutAPIGuildMemberResult = APIGuildMember | never;
export type RESTPutAPIGuildMemberResult = APIGuildMember | undefined;

/**
* https://discord.com/developers/docs/resources/guild#modify-guild-member
Expand Down
2 changes: 1 addition & 1 deletion rest/v8/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export interface RESTPutAPIGuildMemberJSONBody {
/**
* @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
*/
export type RESTPutAPIGuildMemberResult = APIGuildMember | never;
export type RESTPutAPIGuildMemberResult = APIGuildMember | undefined;

/**
* https://discord.com/developers/docs/resources/guild#modify-guild-member
Expand Down
2 changes: 1 addition & 1 deletion rest/v9/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export interface RESTPutAPIGuildMemberJSONBody {
deaf?: boolean | undefined;
}

export type RESTPutAPIGuildMemberResult = APIGuildMember | never;
export type RESTPutAPIGuildMemberResult = APIGuildMember | undefined;

/**
* https://discord.com/developers/docs/resources/guild#modify-guild-member
Expand Down

0 comments on commit b919e72

Please sign in to comment.