diff --git a/src/models/user/mod.rs b/src/models/user/mod.rs index 2b7e7ad..61014cd 100644 --- a/src/models/user/mod.rs +++ b/src/models/user/mod.rs @@ -28,9 +28,14 @@ pub struct User { #[serde(deserialize_with = "deserialize_discriminator")] pub discriminator: u16, pub avatar: Option, + #[serde(default = "default_deleted")] pub deleted: bool, } +fn default_deleted() -> bool { + false +} + impl Username for User { fn username(&self) -> String { if self.discriminator == 0 {