mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
feat: add support for teams update (#9805)
* refactor(TeamMember): deprecate permissions property * feat: add support for team member roles * feat: add reference to external team member role enum * docs: suggested changes Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> --------- Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
3
packages/discord.js/typings/index.d.ts
vendored
3
packages/discord.js/typings/index.d.ts
vendored
@@ -165,6 +165,7 @@ import {
|
||||
GuildOnboardingPromptType,
|
||||
AttachmentFlags,
|
||||
RoleFlags,
|
||||
TeamMemberRole,
|
||||
} from 'discord-api-types/v10';
|
||||
import { ChildProcess } from 'node:child_process';
|
||||
import { EventEmitter } from 'node:events';
|
||||
@@ -2991,9 +2992,11 @@ export class TeamMember extends Base {
|
||||
private constructor(team: Team, data: RawTeamMemberData);
|
||||
public team: Team;
|
||||
public get id(): Snowflake;
|
||||
/** @deprecated Use {@link role} instead. */
|
||||
public permissions: string[];
|
||||
public membershipState: TeamMemberMembershipState;
|
||||
public user: User;
|
||||
public role: TeamMemberRole;
|
||||
|
||||
public toString(): UserMention;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user