mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Utilise Object.values for Permissions.ALL
This commit is contained in:
parent
2f2481c65e
commit
28dc3e6a2e
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ Permissions.FLAGS = {
|
|||
* Bitfield representing every permission combined
|
||||
* @type {number}
|
||||
*/
|
||||
Permissions.ALL = Object.keys(Permissions.FLAGS).reduce((all, p) => all | Permissions.FLAGS[p], 0);
|
||||
Permissions.ALL = Object.values(Permissions.FLAGS).reduce((all, p) => all | p, 0);
|
||||
|
||||
/**
|
||||
* Bitfield representing the default permissions for users
|
||||
|
|
|
|||
Loading…
Reference in a new issue