Voice chat channel

This commit is contained in:
2026-08-26 01:45:39 +02:00
parent e433c1061f
commit 756018020e
2 changed files with 26 additions and 11 deletions
+15 -1
View File
@@ -19,7 +19,8 @@ impl Config {
name: "New Server".to_string(),
description: String::new(),
channels: vec![Channel {
channels: vec![
Channel {
id: "text-channels".to_string(),
name: "Text Channels".to_string(),
@@ -30,8 +31,21 @@ impl Config {
data: ChannelKind::Text,
}],
},
},
Channel {
id: "voice-channels".to_string(),
name: "Voice Channels".to_string(),
data: ChannelKind::Category {
channels: vec![Channel {
id: "vc-1".to_string(),
name: "VC 1".to_string(),
data: ChannelKind::Voice { max_users: 255 },
}],
},
},
],
},
port: 3415,
+2 -1
View File
@@ -19,8 +19,9 @@ pub struct ServerMeta {
#[serde(tag = "kind")]
#[serde(rename_all = "camelCase")]
pub enum ChannelKind {
Text,
Category { channels: Vec<Channel> },
Voice { max_users: u8 },
Text,
}
#[derive(Debug, Clone, Serialize, Deserialize)]