mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +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;
|
return false;
|
||||||
}
|
}
|
||||||
if(!explicit){ // implicit permissions allowed
|
if(!explicit){ // implicit permissions allowed
|
||||||
if( !!(this.permissions & Permissions.manageRoles) ){
|
if( !!(this.permissions & Permissions.administrator) ){
|
||||||
// manageRoles allowed, they have all permissions
|
// administrator allowed, they have all permissions
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue