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