mirror of
https://github.com/danbulant/discord.js
synced 2026-09-18 14:04:00 +00:00
Webpack build for branch master: df2333ac82
This commit is contained in:
parent
d4fd3c2a3e
commit
6979548f66
2 changed files with 3 additions and 3 deletions
|
|
@ -1818,7 +1818,7 @@ class Role {
|
|||
* }
|
||||
*/
|
||||
hasPermission(permission, explicit) {
|
||||
return this.client.resolver.hasPermission(this.permissions, permission, explicit);
|
||||
return new Permissions(this.permissions).has(permission, !explicit);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1828,7 +1828,7 @@ class Role {
|
|||
* @returns {boolean}
|
||||
*/
|
||||
hasPermissions(permissions, explicit = false) {
|
||||
return permissions.every(p => this.hasPermission(p, explicit));
|
||||
return new Permissions(this.permissions).has(permissions, !explicit);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue