fix: deserialization error in speaking bitflags
This commit is contained in:
parent
0e0bff8dbe
commit
e4e4f2cc11
|
@ -10,8 +10,10 @@ use crate::types::{Snowflake, WebSocketEvent};
|
||||||
/// See <https://discord-userdoccers.vercel.app/topics/voice-connections#speaking-structure>
|
/// See <https://discord-userdoccers.vercel.app/topics/voice-connections#speaking-structure>
|
||||||
#[derive(Debug, Deserialize, Serialize, Clone, Default)]
|
#[derive(Debug, Deserialize, Serialize, Clone, Default)]
|
||||||
pub struct Speaking {
|
pub struct Speaking {
|
||||||
/// Data about the audio we're transmitting, its type
|
/// Data about the audio we're transmitting.
|
||||||
pub speaking: SpeakingBitflags,
|
///
|
||||||
|
/// See [SpeakingBitFlags]
|
||||||
|
pub speaking: u8,
|
||||||
pub ssrc: i32,
|
pub ssrc: i32,
|
||||||
/// The user id of the speaking user, only sent by the server
|
/// The user id of the speaking user, only sent by the server
|
||||||
#[serde(skip_serializing)]
|
#[serde(skip_serializing)]
|
||||||
|
|
Loading…
Reference in New Issue