diff --git a/deno/payloads/v10/teams.ts b/deno/payloads/v10/teams.ts index aa47e8497..cf743dd73 100644 --- a/deno/payloads/v10/teams.ts +++ b/deno/payloads/v10/teams.ts @@ -43,6 +43,8 @@ export interface APITeamMember { membership_state: TeamMemberMembershipState; /** * Will always be `["*"]` + * + * @deprecated */ permissions: ['*']; /** @@ -55,6 +57,12 @@ export interface APITeamMember { * See https://discord.com/developers/docs/resources/user#user-object */ user: APIUser; + /** + * The user's role in the team. + * + * See https://discord.com/developers/docs/topics/teams#team-member-roles + */ + role: TeamMemberRole; } /** @@ -64,3 +72,13 @@ export enum TeamMemberMembershipState { Invited = 1, Accepted, } + +/** + * https://discord.com/developers/docs/topics/teams#team-member-roles-team-member-role-types + */ +export enum TeamMemberRole { + Owner = 'owner', + Admin = 'admin', + Developer = 'developer', + ReadOnly = 'read_only', +} diff --git a/deno/payloads/v9/teams.ts b/deno/payloads/v9/teams.ts index aa47e8497..cf743dd73 100644 --- a/deno/payloads/v9/teams.ts +++ b/deno/payloads/v9/teams.ts @@ -43,6 +43,8 @@ export interface APITeamMember { membership_state: TeamMemberMembershipState; /** * Will always be `["*"]` + * + * @deprecated */ permissions: ['*']; /** @@ -55,6 +57,12 @@ export interface APITeamMember { * See https://discord.com/developers/docs/resources/user#user-object */ user: APIUser; + /** + * The user's role in the team. + * + * See https://discord.com/developers/docs/topics/teams#team-member-roles + */ + role: TeamMemberRole; } /** @@ -64,3 +72,13 @@ export enum TeamMemberMembershipState { Invited = 1, Accepted, } + +/** + * https://discord.com/developers/docs/topics/teams#team-member-roles-team-member-role-types + */ +export enum TeamMemberRole { + Owner = 'owner', + Admin = 'admin', + Developer = 'developer', + ReadOnly = 'read_only', +} diff --git a/payloads/v10/teams.ts b/payloads/v10/teams.ts index a617723ff..0b33b5514 100644 --- a/payloads/v10/teams.ts +++ b/payloads/v10/teams.ts @@ -43,6 +43,8 @@ export interface APITeamMember { membership_state: TeamMemberMembershipState; /** * Will always be `["*"]` + * + * @deprecated */ permissions: ['*']; /** @@ -55,6 +57,12 @@ export interface APITeamMember { * See https://discord.com/developers/docs/resources/user#user-object */ user: APIUser; + /** + * The user's role in the team. + * + * See https://discord.com/developers/docs/topics/teams#team-member-roles + */ + role: TeamMemberRole; } /** @@ -64,3 +72,13 @@ export enum TeamMemberMembershipState { Invited = 1, Accepted, } + +/** + * https://discord.com/developers/docs/topics/teams#team-member-roles-team-member-role-types + */ +export enum TeamMemberRole { + Owner = 'owner', + Admin = 'admin', + Developer = 'developer', + ReadOnly = 'read_only', +} diff --git a/payloads/v9/teams.ts b/payloads/v9/teams.ts index a617723ff..0b33b5514 100644 --- a/payloads/v9/teams.ts +++ b/payloads/v9/teams.ts @@ -43,6 +43,8 @@ export interface APITeamMember { membership_state: TeamMemberMembershipState; /** * Will always be `["*"]` + * + * @deprecated */ permissions: ['*']; /** @@ -55,6 +57,12 @@ export interface APITeamMember { * See https://discord.com/developers/docs/resources/user#user-object */ user: APIUser; + /** + * The user's role in the team. + * + * See https://discord.com/developers/docs/topics/teams#team-member-roles + */ + role: TeamMemberRole; } /** @@ -64,3 +72,13 @@ export enum TeamMemberMembershipState { Invited = 1, Accepted, } + +/** + * https://discord.com/developers/docs/topics/teams#team-member-roles-team-member-role-types + */ +export enum TeamMemberRole { + Owner = 'owner', + Admin = 'admin', + Developer = 'developer', + ReadOnly = 'read_only', +}