I've recently made a library for interacting with Discord's Rich Presence in pure Kotlin/Native, namely
KPresence. Other Kotlin libraries were relying on JNI so I decided to make my own 🙂.
Features:
• Cross-platform compatibility (Windows, Linux, macOS)
• Fast and user-friendly, featuring DSL support
• Independent of JVM, written entirely in pure Kotlin/Native
• Respects the ratelimit of one update per 15 seconds. The library will always send the newest presence update once the client is free to do so
• Validates the activity fields before sending them
https://github.com/reblast/KPresence (WIP)
I haven't got time to test it on platforms other than Windows, but it should work nonetheless.