mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user