Allow last_pin_timestamp to default if field is not in responses.

This commit is contained in:
Quat3rnion 2024-06-02 20:06:01 -04:00
parent 8c5d80d3f1
commit a75701d9c6
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ pub struct Channel {
pub icon: Option<String>,
pub id: Snowflake,
pub last_message_id: Option<Snowflake>,
#[serde(with = "ts_seconds_option_str")]
#[serde(with = "ts_seconds_option_str", default)]
pub last_pin_timestamp: Option<DateTime<Utc>>,
pub managed: Option<bool>,
#[cfg_attr(feature = "sqlx", sqlx(skip))]