2022-04-08 16:52:59 +00:00
|
|
|
pub mod reference;
|
|
|
|
pub use reference::*;
|
|
|
|
|
|
|
|
#[derive(Debug, Clone)]
|
|
|
|
pub struct ChatAuthor {
|
|
|
|
pub reference: ChatReference,
|
|
|
|
pub display_name: String,
|
|
|
|
pub display_color: Option<[u8; 3]>,
|
|
|
|
}
|
|
|
|
|
|
|
|
mod content;
|
|
|
|
pub use content::*;
|
|
|
|
|
|
|
|
#[derive(Debug, Clone)]
|
|
|
|
pub struct ChatMessage {
|
|
|
|
pub origin: ChatReference,
|
|
|
|
pub author: ChatAuthor,
|
|
|
|
pub content: ChatMessageContent,
|
2022-04-11 11:52:29 +00:00
|
|
|
pub attachments: Vec<()>,
|
|
|
|
pub replying: Option<ChatReference>,
|
2022-04-08 16:52:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pub mod event;
|