pub fn lockdown_enable(
actor: &Party,
held: Permissions,
restrictions: LockdownRestrictions,
newcomer_restrictions: Permissions,
expires_in_ms: u64,
active: Option<ActiveLockdown>,
) -> Result<(), Refusal>Expand description
moderation.lockdown.enable (also renewal and replacement): duration within 60 s – 7 days
and H3 on the new lockdown’s mask (only the owner exempt). Enabling while one is active
replaces it, so the actor must also pass lockdown_disable for the active one: a lower
moderator cannot swap a higher one’s lockdown.
held is the actor’s community permissions before the lockdown step
(Resolved::before_lockdown of cp): timeout and
probation still apply, but a lockdown never prevents its own management.