Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Idiomatic Kotlin Wrapper for The Discord API

License

NotificationsYou must be signed in to change notification settings

kordlib/kord

Repository files navigation

DiscordDownloadGithub CI status (branch)

Kord is acoroutine-based, modularized implementationof the Discord API, written 100% inKotlin.

If you have any feedback, we'd love to hear it, hit us up on discord or write up an issue if you have any suggestions!

Why use Kord

Kord was created as an answer to the frustrations of writing Discord bots with other JVM libraries, which either usethread-blocking code or verbose and scope restrictive reactive systems. We believe an API written from the ground up inKotlin with coroutines can give you the best of both worlds: The conciseness of imperative code with the concurrency ofreactive code.

Aside from coroutines, we also wanted to give the user full access to lower level APIs. Sometimes you have to do someunconventional things, and we want to allow you to do those in a safe and supported way.

Status of Kord

Right now, Kordshould provide a full mapping of the non-voice API on Kotlin/JVM and Kotlin/JS and an experimentalmapping of the Voice API on Kotlin/JVM

Documentation

Modules

ModuleDocsArtifactJVMJSNative²
commoncommonkord-common¹
restrestkord-rest¹
gatewaygatewaykord-gateway¹
corecorekord-core¹
voicevoicekord-voice❌³
core-voicecore-voicekord-core-voice

¹ These artifacts only supports Gradle Version 5.3 or higher, for older Gradle versions and Maven please append-jvm
² For Native Support please see #69
³ For Voice JS please see #69

Installation

Replace{version} with the latest version number on maven central.

For Snapshots replace{version} with{branch}-SNAPSHOT

e.g:feature-amazing-thing-SNAPSHOT for the branchfeature/amazing-thing

For Snapshots for the branchmain replace{version} with{nextPlannedVersion}-SNAPSHOT (seenextPlannedVersioningradle.properties)

Download

Gradle (Kotlin)

repositories {    mavenCentral()// Kord Snapshot Repositories (optional, choose one of these):    maven("https://repo.kord.dev/snapshots")    maven("https://oss.sonatype.org/content/repositories/snapshots")}dependencies {    implementation("dev.kord:kord-core:{version}")}

Gradle (Groovy)

repositories {    mavenCentral()// Kord Snapshot Repositories (optional, choose one of these):    maven {        url"https://repo.kord.dev/snapshots"    }    maven {        url"https://oss.sonatype.org/content/repositories/snapshots"    }}dependencies {    implementation("dev.kord:kord-core:{version}")}

Maven

Kord Snapshot Repositories (optional, choose one of these):
<repository>    <id>snapshots-repo</id>    <url>https://repo.kord.dev/snapshots</url>    <releases>        <enabled>false</enabled>    </releases>    <snapshots>        <enabled>true</enabled>    </snapshots></repository><repository>    <id>snapshots-repo</id>    <url>https://oss.sonatype.org/content/repositories/snapshots</url>    <releases>        <enabled>false</enabled>    </releases>    <snapshots>        <enabled>true</enabled>    </snapshots></repository>

<dependency>    <groupId>dev.kord</groupId>    <artifactId>kord-core-jvm</artifactId>    <version>{version}</version></dependency>

FAQ

Will you support kotlin multi-platform

Currently we're supporting both Kotlin/JVM and Kotlin/JS for the majority of our API, for more information checkModules and #69

When will you document your code?

Yes.

This project is supported by JetBrains

JetBrains Logo (Main) logo


[8]ページ先頭

©2009-2025 Movatter.jp