VoiceConnection
inline suspend fun VoiceConnection(gateway: Gateway, selfId: Snowflake, channelId: Snowflake, guildId: Snowflake, builder: VoiceConnectionBuilder.() -> Unit = {}): VoiceConnection(source)
Builds a VoiceConnection configured by the builder.
Return
a VoiceConnection that is ready to be used.
Parameters
selfId
the id of yourself.
channelId
the id of the initial voice channel you are connecting to.
guildId
the id of the guild the voice channel resides in.
builder
the builder.
Throws
when there was a problem retrieving voice information from Discord.