Copyright | (c) Yuto Takano (2021) |
---|---|
License | MIT |
Maintainer | moa17stock@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
WARNING
This module is considered internal.
The Package Versioning Policy does not apply.
The contents of this module may change in any way whatsoever and without any warning between minor versions of this package.
Description
This module defines basic types for the communication packets in the Discord Voice UDP socket. Binary instances are defined for the header and the body payload, as according to the official Discord documentation for v4 of the gateway.
Prisms are defined using TemplateHaskell for VoiceUDPPacket.
Synopsis
Documentation
data VoiceUDPPacket Source #
IPDiscovery Integer Text Integer | ssrc, ip, port |
SpeakingData ByteString | |
SpeakingDataEncrypted ByteString ByteString | header, and encrypted audio bytes |
SpeakingDataEncryptedExtra ByteString ByteString | header, and encrypted audio bytes with extended header inside |
UnknownPacket ByteString | |
MalformedPacket ByteString |
Instances
Eq VoiceUDPPacket Source # | |
Defined in Discord.Internal.Types.VoiceUDP (==) :: VoiceUDPPacket -> VoiceUDPPacket -> Bool # (/=) :: VoiceUDPPacket -> VoiceUDPPacket -> Bool # | |
Show VoiceUDPPacket Source # | |
Defined in Discord.Internal.Types.VoiceUDP showsPrec :: Int -> VoiceUDPPacket -> ShowS # show :: VoiceUDPPacket -> String # showList :: [VoiceUDPPacket] -> ShowS # | |
Binary VoiceUDPPacket Source # | |
Defined in Discord.Internal.Types.VoiceUDP | |
HasUdp DiscordVoiceHandle (Weak ThreadId, (VoiceUDPReceiveChan, VoiceUDPSendChan)) Source # | |
Defined in Discord.Internal.Types.VoiceCommon | |
HasUdpHandle UDPLaunchOpts (VoiceUDPReceiveChan, VoiceUDPSendChan) Source # | |
HasUdpHandle WebsocketLaunchOpts (VoiceUDPReceiveChan, VoiceUDPSendChan) Source # | |
data VoiceUDPPacketHeader Source #
Instances
Binary VoiceUDPPacketHeader Source # | |
Defined in Discord.Internal.Types.VoiceUDP put :: VoiceUDPPacketHeader -> Put # get :: Get VoiceUDPPacketHeader # putList :: [VoiceUDPPacketHeader] -> Put # |
''VoiceUDPPacket)