fix: deserialization error in speaking bitflags

This commit is contained in:
kozabrada123 2023-11-12 10:53:23 +01:00
parent 0e0bff8dbe
commit e4e4f2cc11
1 changed files with 4 additions and 2 deletions

View File

@ -10,8 +10,10 @@ use crate::types::{Snowflake, WebSocketEvent};
/// See <https://discord-userdoccers.vercel.app/topics/voice-connections#speaking-structure>
#[derive(Debug, Deserialize, Serialize, Clone, Default)]
pub struct Speaking {
/// Data about the audio we're transmitting, its type
pub speaking: SpeakingBitflags,
/// Data about the audio we're transmitting.
///
/// See [SpeakingBitFlags]
pub speaking: u8,
pub ssrc: i32,
/// The user id of the speaking user, only sent by the server
#[serde(skip_serializing)]