Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
/ KCommands Public archive

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

Notifications You must be signed in to change notification settings

GreemDev/KCommands

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Packages