mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
serialise and serialize
This commit is contained in:
parent
4f64fa6bbb
commit
3791d95b36
2 changed files with 8 additions and 0 deletions
|
|
@ -37,6 +37,10 @@ var EvaluatedPermissions = (function () {
|
|||
};
|
||||
};
|
||||
|
||||
EvaluatedPermissions.prototype.serialize = function serialize() {
|
||||
return this.serialise();
|
||||
};
|
||||
|
||||
EvaluatedPermissions.prototype.getBit = function getBit(x) {
|
||||
if ((this.packed >>> 3 & 1) === 1) {
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -30,6 +30,10 @@ class EvaluatedPermissions {
|
|||
voiceUseVoiceActivation : this.voiceUseVoiceActivation
|
||||
}
|
||||
}
|
||||
|
||||
serialize(){
|
||||
return this.serialise();
|
||||
}
|
||||
|
||||
get createInstantInvite() { return this.getBit(0); }
|
||||
set createInstantInvite(val) { this.setBit(0, val); }
|
||||
|
|
|
|||
Loading…
Reference in a new issue