This commit is contained in:
2025-10-31 15:33:33 +01:00
parent 26d12c443e
commit 9150715c68
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -132,6 +132,7 @@ impl Server {
name: self.config.server_name.clone(),
id: self.config.server_id.clone(),
version: format!("0.0.1"),
channels: self.config.channels.clone(),
}),
)?;
+3
View File
@@ -33,11 +33,14 @@ pub mod data {
pub mod handshake {
use serde::{Deserialize, Serialize};
use crate::types::data::Channel;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ServerDetails {
pub version: String,
pub name: String,
pub id: String,
pub channels: Vec<Channel>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]