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 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 discord.js but with some differences. It tries to adhere to the discord Api as much as possible.
- 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
Add the following to your build.gradle.kts
:
dependencies {
implementation("io.github.realyusufismail:ydwk:${project.version}")
}
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.
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
.
//TODO
Check out the docs for more information.