mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Fixed permissions
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user