VoiceConnectionBuilder

class VoiceConnectionBuilder(var gateway: Gateway, var selfId: Snowflake, var channelId: Snowflake, var guildId: Snowflake)(source)

Constructors

Link copied to clipboard
constructor(gateway: Gateway, selfId: Snowflake, channelId: Snowflake, guildId: Snowflake)

Properties

Link copied to clipboard

The AudioProvider for this VoiceConnection. No audio will be provided when one is not set.

Link copied to clipboard
Link copied to clipboard

The amount of time the connection should wait before assuming the voice connection has been closed instead of moved.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The nonce strategy to be used for the encryption of audio packets. If null, dev.kord.voice.encryption.strategies.LiteNonceStrategy will be used.

Link copied to clipboard

A flag to control the implementation of streams. Set to false by default. When set to false, a NOP implementation will be used. When set to true, a proper receiving implementation will be used.

Link copied to clipboard

A boolean indicating whether your voice state will be deafened.

Link copied to clipboard
Link copied to clipboard

A boolean indicating whether your voice state will be muted.

Link copied to clipboard

A Streams implementation to be used. This will override the receiveVoice flag.

Link copied to clipboard

The amount in milliseconds to wait for the events required to create a VoiceConnection. Default is 5000, or 5 seconds.

Link copied to clipboard

A dev.kord.voice.udp.VoiceUdpSocket implementation to be used. If null, a default will be used.

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun build(): VoiceConnection
Link copied to clipboard
fun frameInterceptor(frameInterceptor: FrameInterceptor)
Link copied to clipboard

A builder to customize the voice connection's underlying VoiceGateway.