mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Unoverlap allow when denying a permission overwrite
This commit is contained in:
@@ -1143,7 +1143,9 @@ var InternalClient = (function () {
|
||||
for (var perm in updated) {
|
||||
if (updated[perm]) {
|
||||
data.allow |= _Constants.Permissions[perm] || 0;
|
||||
data.deny &= ~(_Constants.Permissions[perm] || 0);
|
||||
} else {
|
||||
data.allow &= ~(_Constants.Permissions[perm] || 0);
|
||||
data.deny |= _Constants.Permissions[perm] || 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user