mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Fixed getBit
will now resolve all permissions to true if it has manage role
This commit is contained in:
@@ -53,6 +53,9 @@ var ChannelPermissions = (function () {
|
||||
};
|
||||
|
||||
ChannelPermissions.prototype.getBit = function getBit(x) {
|
||||
if ((this.packed >>> 3 & 1) === 1) {
|
||||
return true;
|
||||
}
|
||||
return (this.packed >>> x & 1) === 1;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user