buildWithLavakord

suspend fun JDABuilder.buildWithLavakord(executor: CoroutineContext? = null, options: MutableLavaKordOptions = MutableLavaKordOptions(), builder: MutableLavaKordOptions.() -> Unit = {}): LJDA

Builds a new LavaKordJDA and applies builder to it.

This adds the required VoiceDispatchInterceptor and EventListener for Lavakord and calls JDABuilder.build.

Parameters

executor

the CoroutineContext used to dispatch coroutines for Lavakord I/O (Defaults to JDA.getGatewayPool)

See also


suspend fun DefaultShardManagerBuilder.buildWithLavakord(executor: CoroutineContext? = null, options: MutableLavaKordOptions = MutableLavaKordOptions(), builder: MutableLavaKordOptions.() -> Unit = {}): LShardManager

Builds a new LavaKordShardManager and applies builder to it.

This adds the required VoiceDispatchInterceptor and EventListener for Lavakord and calls DefaultShardManagerBuilder.build

Parameters

executor

the CoroutineContext used to dispatch coroutines for Lavakord I/O (Defaults to Dispatchers.IO)

See also