Struct command::lockdown::Enable
zaun_community_protocol::command::lockdown::Enable · Struct
pub struct Enable { … }moderation.lockdown.enable; responds with the full
Lockdown.
Fields
Section titled “Fields”restrictions: Vec<Restriction>
Section titled “restrictions: Vec<Restriction>”≥ 1, each once.
expires_in_s: u64
Section titled “expires_in_s: u64”60 – 604 800 s. Required.
forced_slowmode_s: Option<u32>
Section titled “forced_slowmode_s: Option<u32>”≤ 21 600 s.
newcomer_window_s: Option<u64>
Section titled “newcomer_window_s: Option<u64>”1 s – 30 days; only with restrict_newcomers.
reason: Option<String>
Section titled “reason: Option<String>”≤ 512 scalars.
Trait implementations
Section titled “Trait implementations”Body, Clone, Debug, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq, Validate