Copyright | (c) Yuto Takano (2021) |
---|---|
License | MIT |
Maintainer | moa17stock@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
Discord.Internal.Types.VoiceUDP
Description
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 #
Constructors
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
data VoiceUDPPacketHeader Source #
Instances
Binary VoiceUDPPacketHeader Source # | |
Defined in Discord.Internal.Types.VoiceUDP Methods put :: VoiceUDPPacketHeader -> Put # get :: Get VoiceUDPPacketHeader # putList :: [VoiceUDPPacketHeader] -> Put # |
''VoiceUDPPacket)