mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23: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]);
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user