Channels
This commit is contained in:
@@ -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(),
|
||||
}),
|
||||
)?;
|
||||
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user