A low-level implementation of discord's rest api.
suspend fun main(args: Array<String>) {
val token = args.firstOrNull() ?: error("token required")
val rest = RestClient(KtorRequestHandler(token))
val username = rest.user.getCurrentUser().username
println("using $username's token")
}
See the root README for more information.
dependencies {
implementation("dev.kord:kord-rest:{version}")
}
dependencies {
implementation("dev.kord:kord-rest:{version}")
}
<dependency>
<groupId>dev.kord</groupId>
<artifactId>kord-rest-jvm</artifactId>
<version>{version}</version>
</dependency>