Added permission fields missing in server permissions

This commit is contained in:
hydrabolt
2015-10-26 12:18:57 +00:00
parent e9afa94c32
commit 685d08ffa5
2 changed files with 19 additions and 0 deletions

View File

@@ -8,12 +8,21 @@ class ServerPermissions {
return ((self.packed >>> x) & 1) === 1;
}
this.managed = data.managed;
this.position = data.position || 1;
this.hoist = data.hoist;
this.color = data.color;
this.packed = data.permissions;
this.name = data.name;
this.id = data.id;
}
get colour(){
// screw the american spelling
return this.color;
}
serialise() {
return {
createInstantInvite : this.createInstantInvite,