mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
Pass the member into new Permissions instances
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user