mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
Fixed permission resolution
This commit is contained in:
@@ -18,7 +18,7 @@ var ServerPermissions = (function () {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user