|
Another JDA Slash Commands creation and execution wrapper. See the Kotlin example to see how you can implement this library. |
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.
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/")
}