diff --git a/src/command.rs b/src/command.rs index ce2dd7c..0308643 100644 --- a/src/command.rs +++ b/src/command.rs @@ -10,14 +10,18 @@ use tracing::{debug, error, info, trace}; #[derive(Serialize)] struct Server { channels: Vec, + #[serde(skip_serializing_if = "Vec::is_empty")] orphanage: Vec, + #[serde(skip_serializing)] needs_clean: bool, } #[derive(Serialize)] struct Channel { this: GuildChannel, + #[serde(skip_serializing_if = "Vec::is_empty")] children: Vec, + #[serde(skip_serializing_if = "Vec::is_empty")] messages: Vec, }