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