feat: add support for teams update

#9805 backport
This commit is contained in:
Elysia
2024-09-17 17:57:51 +07:00
parent f8071f7e79
commit 8fce4c1fbf
2 changed files with 17 additions and 0 deletions

3
typings/index.d.ts vendored
View File

@@ -54,6 +54,7 @@ import {
LocaleString,
APIGuildMember,
APIChannel,
TeamMemberRole
} from 'discord-api-types/v9';
import { ChildProcess } from 'node:child_process';
import { EventEmitter } from 'node:events';
@@ -3164,8 +3165,10 @@ export class TeamMember extends Base {
private constructor(team: Team, data: RawTeamMemberData);
public team: Team;
public readonly id: Snowflake;
/** @deprecated Use {@link role} instead. */
public permissions: string[];
public membershipState: MembershipState;
public role: TeamMemberRole;
public user: User;
public toString(): UserMention;