mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Fix implicit permissions in roles
This commit is contained in:
parent
b2950b2997
commit
603e231494
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ class ServerChannel extends Channel {
|
|||
permissions |= overwrite.allowData;
|
||||
}
|
||||
|
||||
const admin = Boolean(permissions & (Constants.PermissionFlags.MANAGE_ROLES));
|
||||
const admin = Boolean(permissions & (Constants.PermissionFlags.ADMINISTRATOR));
|
||||
if (admin) {
|
||||
permissions = Constants.ALL_PERMISSIONS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue