mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Fix Permissions.ALL on Node 6
This commit is contained in:
@@ -231,7 +231,7 @@ Permissions.FLAGS = {
|
||||
* Bitfield representing every permission combined
|
||||
* @type {number}
|
||||
*/
|
||||
Permissions.ALL = Object.values(Permissions.FLAGS).reduce((all, p) => all | p, 0);
|
||||
Permissions.ALL = Object.keys(Permissions.FLAGS).reduce((all, p) => all | Permissions.FLAGS[p], 0);
|
||||
|
||||
/**
|
||||
* Bitfield representing the default permissions for users
|
||||
|
||||
Reference in New Issue
Block a user