GreemDev / KCommands

Kotlin extensions and a high-level API for JDA Slash Commands and Buttons.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kotlin logo

KCommands

Another JDA Slash Commands creation and execution wrapper. See the Kotlin example to see how you can implement this library.

Discord

Note:

This library was not made with Java interop in mind. Most of the functions will make you return Unit.INSTANCE.

This is no longer the case! You can see example usages of the interopability here.

  • Please do note that most of the functions are just converting Java function types (Consumer, BiConsumer, etc) to Kotlin FunctionX<> types, allowing Consumer usage with the Kotlin API.

Installation

For both Maven and Gradle, you need to add the following repository: https://mvn.greemdev.net/repository/maven-releases

Maven:

<dependency>
    <groupId>net.greemdev</groupId>
    <artifactId>KCommands</artifactId>
    <version>VERSION</version>
</dependency>

<repository>
    <id>greemdev</id>
    <url>https://mvn.greemdev.net/repository/maven-releases</url>
</repository>

Gradle:

dependencies {
    implementation("net.greemdev:KCommands:VERSION")
}

repositories {
    maven("https://mvn.greemdev.net/repository/maven-releases/")
}

About

Kotlin extensions and a high-level API for JDA Slash Commands and Buttons.


Languages

Language:Kotlin 92.9%Language:Java 7.1%