mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
Added setting permissions
You should just do: permissionObject.manageRoles = true; for example rather than messing with setBit.
This commit is contained in:
@@ -52,10 +52,11 @@ var ServerPermissions = (function () {
|
||||
|
||||
if (value) {
|
||||
// allow that permission
|
||||
|
||||
this.packed |= 1 << location;
|
||||
} else {
|
||||
// not allowed
|
||||
}
|
||||
// not allowed
|
||||
this.packed &= 1 << location;
|
||||
}
|
||||
};
|
||||
|
||||
ServerPermissions.prototype.toString = function toString() {
|
||||
|
||||
Reference in New Issue
Block a user