connect
suspend fun BaseVoiceChannelBehavior.connect(builder: VoiceConnectionBuilder.() -> Unit): VoiceConnection(source)
Connect to this VoiceChannel and create a VoiceConnection for this voice session.
Return
a VoiceConnection representing the connection to this VoiceConnection.
Parameters
builder
a builder for the VoiceConnection.
Throws
when there is no associated dev.kord.gateway.Gateway for the dev.kord.core.entity.Guild this channel is in.
when there was a problem retrieving voice information from Discord.