mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 13:36:59 +00:00
Servers: Add route for creating channels.
Notifications: Subscribe to guild channels.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user