FormattedTimestamp

data class FormattedTimestamp(val instant: Instant, val format: TimestampType)

Container class for a timestamp and format, as expected by Discord.

Parameters

instant

The timestamp this represents

format

Which format to display the timestamp in

Constructors

Link copied to clipboard
constructor(instant: Instant, format: TimestampType)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Format the timestamp using the format into Discord's special format.