caoimhebyrne / KDiscordIPC

A Kotlin library for interacting with Discord via IPC
MIT License
50 stars 8 forks source link

Unable to show time as "elapsed" #13

Closed ghost closed 2 years ago

ghost commented 2 years ago

Discord RPC question

fun Activity.timestamps(start: Long, end: Long) {
    this.timestamps = Activity.Timestamps(start, end)
}

The discord docs says that to show the time as "elapsed" I have to not pass the endTimeStamp, but if I don't pass it or pass it as null there is an error. Null can not be a value of a non-null type Long How do I show the time as "elapsed" instead of "remaining"?

caoimhebyrne commented 2 years ago

Fixed in 0c852ea - you can use timestamps(System.currentTimeMillis()) to use an elapsed timestamp.