patch reminders

This commit is contained in:
jude
2022-03-22 22:21:47 +00:00
parent 878ea11502
commit afb2fbe4ff
9 changed files with 274 additions and 97 deletions

View File

@ -22,6 +22,10 @@ fn name_default() -> String {
"Reminder".to_string()
}
fn channel_default() -> u64 {
0
}
#[derive(Serialize, Deserialize)]
pub struct Reminder {
attachment: Option<Vec<u8>>,
@ -63,6 +67,9 @@ pub struct PatchReminder {
attachment_name: Unset<Option<String>>,
#[serde(default)]
avatar: Unset<Option<String>>,
#[serde(default = "channel_default")]
#[serde(with = "string")]
channel: u64,
#[serde(default)]
content: Unset<String>,
#[serde(default)]