Flesh out and properly feature lock fields on Attachment

This commit is contained in:
Zertex 2023-05-26 16:00:15 -04:00
parent b885e13922
commit 8fcd64f87d
1 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,4 @@
use crate::types::Message;
use serde::{Deserialize, Serialize};
use crate::types::utils::Snowflake;
@ -14,7 +15,10 @@ pub struct Attachment {
pub proxy_url: String,
pub height: Option<u64>,
pub width: Option<u64>,
pub message_id: Snowflake,
#[cfg(feature = "sqlx")]
pub message_id: Option<Snowflake>,
#[cfg_attr(feature = "sqlx", sqlx(skip))]
pub message: Option<Message>,
pub ephemeral: Option<bool>,
pub duration_secs: Option<f32>,
pub waveform: Option<String>,