VoiceConnection

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.

voiceGateway

the underlying VoiceGateway for this voice connection.

data

the data representing this VoiceConnection.

voiceGatewayConfiguration

the configuration used on each new connect for the voiceGateway.

audioProvider

a AudioProvider that will provide AudioFrame when required.

frameInterceptor

a FrameInterceptor that will intercept all outgoing AudioFrames.

frameSender

the AudioFrameSender that will handle the sending of audio packets.

nonceStrategy

the NonceStrategy that is used during encryption of audio.