fix(types): Sort teams.ts types (#4297)

* Sort teams.ts types

* Update packages/types/src/discord/teams.ts

Co-authored-by: Link <lts20050703@gmail.com>

---------

Co-authored-by: Link <lts20050703@gmail.com>
This commit is contained in:
Fleny
2025-08-11 19:43:54 +02:00
committed by GitHub
parent 946e22dc2f
commit 109a478a5b

View File

@@ -4,8 +4,15 @@ import type { DiscordUser } from './user.js'
/* https://discord.com/developers/docs/topics/teams#team-member-roles-team-member-role-types */
export enum DiscordTeamMemberRole {
/** Owners are the most permissiable role, and can take destructive, irreversible actions like deleting the team itself. Teams are limited to 1 owner. */
Owner = 'owner',
/**
* Owners are the most permissiable role, and can take destructive, irreversible actions like deleting the team itself.
*
* Teams are limited to 1 owner.
*
* @remarks
* The owner role is not represented in the role field on the team member object. Instead, the owner_user_id field on the team object should be used to identify which user has the owner role for the team.
*/
Owner = '',
/** Admins have similar access as owners, except they cannot take destructive actions on the team or team-owned apps. */
Admin = 'admin',
/**
@@ -26,10 +33,10 @@ export interface DiscordTeam {
id: string
/** Members of the team */
members: DiscordTeamMember[]
/** User ID of the current team owner */
owner_user_id: string
/** Name of the team */
name: string
/** User ID of the current team owner */
owner_user_id: string
}
/** https://discord.com/developers/docs/topics/teams#data-models-team-member-object */