toDiscord

fun Instant.toDiscord(format: TimestampType = TimestampType.Default): String

Format the given Instant to Discord's automatically-formatted timestamp format. This will return a String that you can include in your messages, which Discord should automatically format for users based on their locale.