Servers: Add route for creating channels.

Notifications: Subscribe to guild channels.
This commit is contained in:
Paul
2021-06-02 11:51:58 +01:00
parent f32f447233
commit 1713ad057d
8 changed files with 179 additions and 45 deletions

View File

@@ -42,7 +42,8 @@ pub enum Channel {
name: String,
owner: String,
description: String,
#[serde(skip_serializing_if = "Option::is_none")]
description: Option<String>,
recipients: Vec<String>,
#[serde(skip_serializing_if = "Option::is_none")]
@@ -58,10 +59,11 @@ pub enum Channel {
nonce: Option<String>,
name: String,
#[serde(skip_serializing_if = "Option::is_none")]
description: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
icon: Option<File>,
}
},
}
impl Channel {