lavakord

suspend fun ShardManager.lavakord(shardManager: LavaKordShardManager, executor: CoroutineContext? = null, options: MutableLavaKordOptions = MutableLavaKordOptions(), builder: MutableLavaKordOptions.() -> Unit = {}): LavaKord

Builds the LavaKord instance for this ShardManager.

Example usage:

val lavakordShardManager = LavaKordShardManager()
val shardManager = DefaultShardManagerBuilder.createDefault(token)
// you don't need to call this and add "lavakordShardManager" as an event listener and VoiceDispatchInterceptor yourself
.applyLavakord(lavakordShardManager)
.build()

val lavakord = shardManager.lavakord(lavakordShardManager)

suspend fun JDA.lavakord(jda: LavaKordJDA, executor: CoroutineContext? = null, options: MutableLavaKordOptions = MutableLavaKordOptions(), builder: MutableLavaKordOptions.() -> Unit = {}): LavaKord

Builds the LavaKord instance for this ShardManager.

Example usage:

val lavakordJDA = LavaKordJDA()
val jda = JDABuilder.createDefault(token)
// you don't need to call this and add "LavaKordJDA" as an event listener and VoiceDispatchInterceptor yourself
.applyLavakord(lavakordShardManager)
.build()

val lavakord = jda.lavakord(lavakordJDA)