1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
use crate::{ channel::{embed::Embed, message::MessageType, Attachment}, id::{ChannelId, MessageId, RoleId}, user::User, }; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)] pub struct MessageUpdate { pub attachments: Option<Vec<Attachment>>, pub author: Option<User>, pub channel_id: ChannelId, pub content: Option<String>, pub edited_timestamp: Option<String>, pub embeds: Option<Vec<Embed>>, pub id: MessageId, #[serde(rename = "type")] pub kind: Option<MessageType>, pub mention_everyone: Option<bool>, pub mention_roles: Option<Vec<RoleId>>, pub mentions: Option<Vec<User>>, pub pinned: Option<bool>, pub timestamp: Option<String>, pub tts: Option<bool>, }