mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
serialise and serialize
This commit is contained in:
@@ -37,6 +37,10 @@ var EvaluatedPermissions = (function () {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
EvaluatedPermissions.prototype.serialize = function serialize() {
|
||||||
|
return this.serialise();
|
||||||
|
};
|
||||||
|
|
||||||
EvaluatedPermissions.prototype.getBit = function getBit(x) {
|
EvaluatedPermissions.prototype.getBit = function getBit(x) {
|
||||||
if ((this.packed >>> 3 & 1) === 1) {
|
if ((this.packed >>> 3 & 1) === 1) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ class EvaluatedPermissions {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
serialize(){
|
||||||
|
return this.serialise();
|
||||||
|
}
|
||||||
|
|
||||||
get createInstantInvite() { return this.getBit(0); }
|
get createInstantInvite() { return this.getBit(0); }
|
||||||
set createInstantInvite(val) { this.setBit(0, val); }
|
set createInstantInvite(val) { this.setBit(0, val); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user