Skip to main content

validate_newcomer_restrictions

Function validate_newcomer_restrictions 

Source
pub fn validate_newcomer_restrictions(
    old: Permissions,
    new: Permissions,
) -> Result<(), Invalid>
Expand description

Validates a new newcomer_restrictions mask: no VIEW_CHANNEL or READ_MESSAGE_HISTORY, no newly set unknown bit.