mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 08:41:29 +00:00
Pass the member into new Permissions instances
This commit is contained in:
parent
427eec8ccb
commit
30dd9be900
1 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ class Permissions {
|
||||||
const perm = this.constructor.resolve(permissions[p]);
|
const perm = this.constructor.resolve(permissions[p]);
|
||||||
if ((this.bitfield & perm) !== perm) total |= perm;
|
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]);
|
const perm = this.constructor.resolve(permissions[p]);
|
||||||
if ((this.bitfield & perm) === perm) total |= perm;
|
if ((this.bitfield & perm) === perm) total |= perm;
|
||||||
}
|
}
|
||||||
return new this.constructor(this.bitfield & ~total);
|
return new this.constructor(this.member, this.bitfield & ~total);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue