discord-haskell-voice-2.3.1: Voice support for discord-haskell.
Copyright(c) Yuto Takano (2021)
LicenseMIT
Maintainermoa17stock@gmail.com
Safe HaskellNone
LanguageHaskell2010

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 

''VoiceUDPPacket)