Kord 0.14.0 Help

Sending a Message

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") }
Last modified: 08 April 2023