Restructure voice to new module

This commit is contained in:
kozabrada123 2023-11-12 10:52:42 +01:00
parent f90c91628a
commit 0e0bff8dbe
5 changed files with 6 additions and 4 deletions

View File

@ -28,9 +28,7 @@ pub mod instance;
pub mod ratelimiter; pub mod ratelimiter;
pub mod types; pub mod types;
#[cfg(feature = "client")] #[cfg(feature = "client")]
pub mod voice_gateway; pub mod voice;
#[cfg(feature = "client")]
pub mod voice_udp;
#[derive(Clone, Default, Debug, PartialEq, Eq, Hash)] #[derive(Clone, Default, Debug, PartialEq, Eq, Hash)]
/// A URLBundle bundles together the API-, Gateway- and CDN-URLs of a Spacebar instance. /// A URLBundle bundles together the API-, Gateway- and CDN-URLs of a Spacebar instance.

4
src/voice/mod.rs Normal file
View File

@ -0,0 +1,4 @@
//! Module for all voice functionality within chorus.
pub mod gateway;
pub mod udp;

1
src/voice/udp.rs Normal file
View File

@ -0,0 +1 @@
//! Defines voice raw udp socket handling

View File

@ -1 +0,0 @@
/// Defines voice raw udp socket handling