mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
Fix Permissions.ALL on Node 6
This commit is contained in:
parent
4f7e0c41ee
commit
6211119928
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue