The base trait for all audio events.
Sent by the client at some interval specified by Hello
Sent by the client at some interval specified by Hello
Nonce
Sent by Discord as acknowledgement of our heartbeat
Sent by Discord as acknowledgement of our heartbeat
The nonce we sent
Sent by Discord to tell us what heartbeat interval we should use.
Sent by the client to inform Discord that we want to send voice data.
Sent by the client to inform Discord that we want to send voice data. Discord responds with Ready
Data used by Identify
Data used by Identify
The server id we want to connect to
Our user id
The session id received in ackcord.APIMessage.VoiceStateUpdate
The token received in ackcord.APIMessage.VoiceServerUpdate
Represents the RTP header used for sending and receiving voice data
Represents the RTP header used for sending and receiving voice data
The type to use. Should be 0x80
The version to use. Should be 0x78
The sequence
Timestamp
SSRC of sender
Sent by Discord following Identify
Data of Ready
Data of Ready
Our ssrc
The port to connect to
The supported modes
Faulty heartbeat interval, should be ignored
Sent by the client when we want to resume a connection after getting disconnected.
Data of Resume
Data of Resume
The server id to resume for
The session id
The token
Sent by the client when everything else is done.
Sent by the client when everything else is done. Discord responds with SessionDescription
Connection data used by SelectProtocol
Connection data used by SelectProtocol
Our IP address discovered using ip discovery
Our port discovered using ip discovery
The encryption mode, currently supports only xsalsa20_poly1305
Data used by SelectProtocol
Data used by SelectProtocol
The protocol to use, currently only supports udp
The connection data
Sent by Discord in response to SelectProtocol
Data of SessionDescription
Data of SessionDescription
The mode used
The secret key used for encryption
Sent by Discord when a user is speaking, anc client when we want to set the bot as speaking.
Sent by Discord when a user is speaking, anc client when we want to set the bot as speaking. This is required before sending voice data.
Data of Speaking
Data of Speaking
If the user is speaking
Delay
The ssrc of the speaking user
Optional user id
Messages sent to the voice websocket.
Voice opcode used by voice websocket
Responsible for handling the websocket connection part of voice data.
Message for OpCode 13, should be ignored
Message for OpCode 12, should be ignored
Send by Discord when we successfully resume a connection
The base trait for all audio events. Note that the audio API does not have any connections to any ackcord.CacheSnapshots. As such you have to find the objects for the IDs yourself.