Skip to content

Commit

Permalink
Revert "refactor(TeamMember): remove client from constructor (discord…
Browse files Browse the repository at this point in the history
…js#3409)"

This reverts commit dd43354.
  • Loading branch information
samsamson33 committed Feb 27, 2020
1 parent 6165374 commit e28f74c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/structures/Team.js
Expand Up @@ -47,7 +47,7 @@ class Team extends Base {
this.members = new Collection();

for (const memberData of data.members) {
const member = new TeamMember(this, memberData);
const member = new TeamMember(this.client, this, memberData);
this.members.set(member.id, member);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/structures/TeamMember.js
Expand Up @@ -8,8 +8,8 @@ const { MembershipStates } = require('../util/Constants');
* @extends {Base}
*/
class TeamMember extends Base {
constructor(team, data) {
super(team.client);
constructor(client, team, data) {
super(client);

/**
* The Team this member is part of
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -283,7 +283,7 @@ declare module 'discord.js' {
}

export class TeamMember extends Base {
constructor(team: Team, data: object);
constructor(client: Client, team: Team, data: object);
public team: Team;
public readonly id: Snowflake;
public permissions: string[];
Expand Down

0 comments on commit e28f74c

Please sign in to comment.