Skip to content

Commit

Permalink
Revert "refactor(TeamMember): make id a getter"
Browse files Browse the repository at this point in the history
This reverts commit bd40600.
  • Loading branch information
samsamson33 committed Feb 27, 2020
1 parent fbfac82 commit fb46e2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions src/structures/TeamMember.js
Expand Up @@ -38,15 +38,12 @@ class TeamMember extends Base {
* @type {User}
*/
this.user = this.client.users.add(data.user);
}

/**
* The ID of the Team Member
* @type {Snowflake}
* @readonly
*/
get id() {
return this.user.id;
/**
* The ID of the Team Member
* @type {Snowflake}
*/
this.id = this.user.id;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -284,7 +284,7 @@ declare module 'discord.js' {
export class TeamMember extends Base {
constructor(client: Client, team: Team, data: object);
public team: Team;
public readonly id: Snowflake;
public id: Snowflake;
public permissions: string[];
public membershipState: MembershipStates;
public user: User;
Expand Down

0 comments on commit fb46e2f

Please sign in to comment.