mirror of
https://github.com/danbulant/discord.js
synced 2026-06-18 14:11:09 +00:00
Webpack build for branch 11.4-dev: 5d889be6db
This commit is contained in:
parent
ef61956627
commit
075cdf8831
2 changed files with 2 additions and 1 deletions
|
|
@ -1905,6 +1905,7 @@ class Permissions {
|
|||
*/
|
||||
static resolve(permission) {
|
||||
if (permission instanceof Array) return permission.map(p => this.resolve(p)).reduce((prev, p) => prev | p, 0);
|
||||
if (permission instanceof Permissions) return permission.bitfield;
|
||||
if (typeof permission === 'string') permission = this.FLAGS[permission];
|
||||
if (typeof permission !== 'number' || permission < 0) throw new RangeError(Constants.Errors.NOT_A_PERMISSION);
|
||||
return permission;
|
||||
|
|
|
|||
2
discord.11.4-dev.min.js
vendored
2
discord.11.4-dev.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue