mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
feat!: support new s/S timestamp styles (#11267)
BREAKING CHANGE: `TimestampStyles.LongTime` has been removed. Use `TimestampStyles.MediumTime` instead. BREAKING CHANGE: `TimestampStyles.ShortDateTime` has been removed. Use `TimestampStyles.LongDateShortTime` instead. BREAKING CHANGE: `TimestampStyles.LongDateTime` has been removed. Use `TimestampStyles.FullDateShortTime` instead.
This commit is contained in:
@@ -725,11 +725,11 @@ export const TimestampStyles = {
|
||||
ShortTime: 't',
|
||||
|
||||
/**
|
||||
* Long time format, consisting of hours, minutes, and seconds.
|
||||
* Medium time format, consisting of hours, minutes, and seconds.
|
||||
*
|
||||
* @example `16:20:30`
|
||||
*/
|
||||
LongTime: 'T',
|
||||
MediumTime: 'T',
|
||||
|
||||
/**
|
||||
* Short date format, consisting of day, month, and year.
|
||||
@@ -741,23 +741,37 @@ export const TimestampStyles = {
|
||||
/**
|
||||
* Long date format, consisting of day, month, and year.
|
||||
*
|
||||
* @example `20 April 2021`
|
||||
* @example `April 20, 2021`
|
||||
*/
|
||||
LongDate: 'D',
|
||||
|
||||
/**
|
||||
* Short date-time format, consisting of short date and short time formats.
|
||||
* Long date-short time format, consisting of long date and short time.
|
||||
*
|
||||
* @example `20 April 2021 16:20`
|
||||
* @example `April 20, 2021 at 16:20`
|
||||
*/
|
||||
ShortDateTime: 'f',
|
||||
LongDateShortTime: 'f',
|
||||
|
||||
/**
|
||||
* Long date-time format, consisting of long date and short time formats.
|
||||
* Full date-short time format, consisting of full date and short time.
|
||||
*
|
||||
* @example `Tuesday, 20 April 2021 16:20`
|
||||
* @example `Tuesday, April 20, 2021 at 16:20`
|
||||
*/
|
||||
LongDateTime: 'F',
|
||||
FullDateShortTime: 'F',
|
||||
|
||||
/**
|
||||
* Short date, short time format, consisting of short date and short time.
|
||||
*
|
||||
* @example `20/04/2021, 16:20`
|
||||
*/
|
||||
ShortDateShortTime: 's',
|
||||
|
||||
/**
|
||||
* Short date, medium time format, consisting of short date and medium time.
|
||||
*
|
||||
* @example `20/04/2021, 16:20:30`
|
||||
*/
|
||||
ShortDateMediumTime: 'S',
|
||||
|
||||
/**
|
||||
* Relative time format, consisting of a relative duration format.
|
||||
|
||||
Reference in New Issue
Block a user