Pass the member into new Permissions instances

This commit is contained in:
Schuyler Cebulskie
2017-03-06 02:29:35 -05:00
parent 427eec8ccb
commit 30dd9be900

View File

@@ -73,7 +73,7 @@ class Permissions {
const perm = this.constructor.resolve(permissions[p]);
if ((this.bitfield & perm) !== perm) total |= perm;
}
return new this.constructor(this.bitfield | total);
return new this.constructor(this.member, this.bitfield | total);
}
/**
@@ -87,7 +87,7 @@ class Permissions {
const perm = this.constructor.resolve(permissions[p]);
if ((this.bitfield & perm) === perm) total |= perm;
}
return new this.constructor(this.bitfield & ~total);
return new this.constructor(this.member, this.bitfield & ~total);
}
/**