-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Description
discord.js/packages/discord.js/src/structures/GuildChannel.js
Lines 132 to 142 in 68835b3
| // Handle empty overwrite | |
| if ( | |
| (!channelVal && | |
| parentVal.deny.bitfield === PermissionsBitField.DefaultBit && | |
| parentVal.allow.bitfield === PermissionsBitField.DefaultBit) || | |
| (!parentVal && | |
| channelVal.deny.bitfield === PermissionsBitField.DefaultBit && | |
| channelVal.allow.bitfield === PermissionsBitField.DefaultBit) | |
| ) { | |
| return true; | |
| } |
Not all empty permission overwrites need to be excluded
Only
@everyone needs to be excluded
What I did
- Create a category and a text channel in it
- Add an empty overwrite for the user to the category or channel
- Check permissionsLocked
Expected - false, but received - true