8000 GitHub - kordlib/Lavalink.kt at 0.1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kordlib/Lavalink.kt

Repository files navigation

Lavakord

Extension of the official LavaLink-Client to work with Kord

Both Kord and Lavakord is still in an experimental stage, as such we can't guarantee API stability between releases. While we'd love for you to try out our library, we don't recommend you use this in production just yet.

Lavalink download: https://github.com/Frederikam/Lavalink

Download

You can get Lavakord from here: https://package-search.jetbrains.com/package?id=me.schlaubi%3Alavakord (You need jcenter() and jitpack though)

Usage

You can create a Lavalink object like this

    val lavalink = kord.lavalink()

    // or    

    val lavalink = kord.lavalink {
            autoReconnect = false
    }

You can obtain and use a Link like this

    val link = guild.getLink(lavalink)

    link.connect(channel)

    // use lavalink stuff like player

    link.disconnect()

Documentation

For more info please use the example or Dokka docs

0