Add a way to send messages with attachments.

This commit is contained in:
Paul Makles
2021-02-16 15:25:33 +00:00
parent b6b51bca26
commit a7ea29d821
8 changed files with 92 additions and 7 deletions

View File

@@ -19,6 +19,8 @@ pub struct Message {
pub content: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub attachment: Option<File>,
#[serde(skip_serializing_if = "Option::is_none")]
pub edited: Option<DateTime>,
}
@@ -31,6 +33,7 @@ impl Message {
author,
content,
attachment: None,
edited: None,
}
}