Skip to content

YDWK/YDWK


License: Apache 2.0 Kotlin codecov ydwk ydwk-docs

Very important note

Don't update to 1.22.0 it was a mistaken release caused by a bug in the code, use the latest version found above.

YDWK

YDWK is a discord wrapper made in Kotlin that aims to be as simple and as fast as possible while still being easy to use and understand. It is built to be similar to libaries like discord.js but is different in its own way. It tries to adhere to the discord Api as much as possible.

Getting started

📦 Installation

Grovy DLS gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation "io.github.realyusufismail:ydwk:${project.version}"
}

Kotlin DLS gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation("io.github.realyusufismail:ydwk:${project.version}")
}

Maven

<dependency>
    <groupId>io.github.realyusufismail</groupId>
    <artifactId>ydwk</artifactId>
    <version>${project.version}</version>
</dependency>

Now to create a default bot, add the following to your main class:

fun main() {
    createDefaultBot("TOKEN").build()
}

A default bot has all the recommended gateway intents.

For more details see the creating a basic bot

Getting cached entities and getting entities through the rest api

When you want to get a cached entity, it will be named getEntity and when you want to get an entity through the Rest API, it will be named requestEntity.

Features :

In progress and to be done

Future Features

Implemented

  • Handle Rest API
  • Connect to gateway
  • Parse Json
  • Handle all op codes
  • Caching
  • Handle reconnect and resuming
  • Support for intents
  • Handle slash commands
  • Reply system for slash commands
  • Embed builder
  • Support for messages
  • Handle rate limiting in Websocket
  • Handle rate limiting in rest
  • Support for channels
  • Create entities - in progress
  • Handle events - In progress

For more information

Check out the docs for more information.