mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
Utilise Object.values for Permissions.ALL
This commit is contained in:
@@ -171,7 +171,7 @@ Permissions.FLAGS = {
|
|||||||
* Bitfield representing every permission combined
|
* Bitfield representing every permission combined
|
||||||
* @type {number}
|
* @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
|
* Bitfield representing the default permissions for users
|
||||||
|
|||||||
Reference in New Issue
Block a user