refactor(TeamMember): make id a getter

This commit is contained in:
SpaceEEC
2019-06-25 20:40:15 +02:00
parent a22aabf6a8
commit d7b2146c81
2 changed files with 9 additions and 6 deletions

View File

@@ -38,12 +38,15 @@ class TeamMember extends Base {
* @type {User}
*/
this.user = this.client.users.add(data.user);
}
/**
* The ID of the Team Member
* @type {Snowflake}
*/
this.id = this.user.id;
/**
* The ID of the Team Member
* @type {Snowflake}
* @readonly
*/
get id() {
return this.user.id;
}
/**