Package-level declarations

Types

Link copied to clipboard
sealed class TimestampType

Sealed class representing the different types of Discord-formatted timestamps.

Properties

Link copied to clipboard
val DateTimeUnit.name: String

Retrieve the pluralized English name for a given DateTimeUnit.

Functions

Link copied to clipboard
fun namedDateTimeUnit(name: String): DateTimeUnit

Retrieve the DateTimeUnit for the given pluralized English name.

Link copied to clipboard

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.