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