Fixed permission resolution

This commit is contained in:
hydrabolt
2015-10-29 15:45:48 +00:00
parent 0938382e51
commit 626c3208b9
5 changed files with 42 additions and 69 deletions

View File

@@ -12,7 +12,7 @@ class ServerPermissions {
this.position = data.position || 1;
this.hoist = data.hoist || false;
this.color = data.color || 0;
this.packed = data.permissions || 36953089;
this.packed = data.permissions || (data.name === "@everyone" ? 36953089 : 0));
this.name = data.name || "new role";
this.id = data.id || null;
this.server = server;