Voice Connection
constructor(data: VoiceConnectionData, gateway: Gateway, voiceGateway: VoiceGateway, socket: VoiceUdpSocket, voiceGatewayConfiguration: VoiceGatewayConfiguration, streams: Streams, audioProvider: AudioProvider, frameInterceptor: FrameInterceptor, frameSender: AudioFrameSender, nonceStrategy: NonceStrategy, connectionDetachDuration: Duration)(source)
Parameters
gateway
the Gateway that handles events for the guild this VoiceConnection represents.
voice Gateway
the underlying VoiceGateway for this voice connection.
data
the data representing this VoiceConnection.
voice Gateway Configuration
the configuration used on each new connect for the voiceGateway.
audio Provider
a AudioProvider that will provide AudioFrame when required.
frame Interceptor
a FrameInterceptor that will intercept all outgoing AudioFrames.
frame Sender
the AudioFrameSender that will handle the sending of audio packets.
nonce Strategy
the NonceStrategy that is used during encryption of audio.