Fixed permissions

This commit is contained in:
hydrabolt
2015-10-25 18:36:03 +00:00
parent f0ae575aa0
commit 2de37a8fbb
16 changed files with 2969 additions and 357 deletions

View File

@@ -19,22 +19,19 @@ var ServerPermissions = (function () {
this.id = data.id;
}
ServerPermissions.prototype.getBit = function getBit(x) {
return (this.packed >>> x & 1) === 1;
};
ServerPermissions.prototype.setBit = function setBit() {
//dummy function for now
};
ServerPermissions.prototype.toString = function toString() {
return this.name;
};
_createClass(ServerPermissions, [{
key: "getBit",
value: function getBit(x) {
return (this.packed >>> x & 1) === 1;
}
}, {
key: "setBit",
value: function setBit() {
//dummy function for now
}
}, {
key: "toString",
value: function toString() {
return this.name;
}
}, {
key: "createInstantInvite",
get: function get() {
return this.getBit(0);