feat: add VoiceData struct
This commit is contained in:
parent
b013666bfa
commit
cc51c59476
|
@ -2,3 +2,4 @@
|
|||
|
||||
pub mod gateway;
|
||||
pub mod udp;
|
||||
pub mod voice_data;
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
use discortp::discord::IpDiscovery;
|
||||
|
||||
use crate::types::{Snowflake, VoiceReady, VoiceServerUpdate};
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
/// Saves data shared between parts of the voice architecture
|
||||
pub struct VoiceData {
|
||||
pub server_data: Option<VoiceServerUpdate>,
|
||||
pub ready_data: Option<VoiceReady>,
|
||||
pub user_id: Snowflake,
|
||||
pub session_id: String,
|
||||
pub ip_discovery: Option<IpDiscovery>,
|
||||
}
|
Loading…
Reference in New Issue