mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
This commit is contained in:
parent
6d7e989e3b
commit
ee64253f0b
1 changed files with 2 additions and 2 deletions
|
|
@ -33,8 +33,8 @@ export default class ChannelPermissions {
|
|||
return false;
|
||||
}
|
||||
if(!explicit){ // implicit permissions allowed
|
||||
if( !!(this.permissions & Permissions.manageRoles) ){
|
||||
// manageRoles allowed, they have all permissions
|
||||
if( !!(this.permissions & Permissions.administrator) ){
|
||||
// administrator allowed, they have all permissions
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue