Skip to content

Commit

Permalink
refactor: use TimestampStyles enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed May 12, 2023
1 parent 9926839 commit c05c40d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/guide/src/content/04-popular-topics/03-formatters.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ With _`time()`_, you can format Unix timestamps and dates into a Discord time st
<CH.Code>

```js
import { time } = from 'discord.js';
import { time, TimestampStyles } = from 'discord.js';

const date = new Date();
const timeString = time(date);
const relative = time(date, 'R');
const relative = time(date, TimestampStyles.RelativeTime);
```

</CH.Code>
Expand Down

0 comments on commit c05c40d

Please sign in to comment.