Skip to main content

has_member_view_allow

Function has_member_view_allow 

Source
fn has_member_view_allow(overwrites: &[PermissionOverwrite]) -> bool
Expand description

Returns true if any per-member overwrite grants VIEW_CHANNEL.

This is how Discord represents a channel made private by adding individual users. Access granted this way is invisible to viewing_roles, so its presence means the role set understates who can see the channel.