How can I turn a joinedTimestamp into this Discord Timestamp
The one that automatically shows you like how long ago this timestamp was
Solution:Jump to solution
Discord.js
Discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
14 Replies
Do you have a utility for this?
u can import the time function from discord.js
Solution
Discord.js
Discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
<t:<Date>:F>
replace <Date> with your valid Unix time stampi played around with it a bit and have the following problem
the timestamp
1677687907708
converts to this when using a unix tool, watch the date 2023
But when using it in discord, I get a super wierd date in the future
<t:1677687907708:R>
<t:1677687907:R>
<t:1677687907:R>
divide it by thousand and you are good
why is that
Because Unix timestamps includes milliseconds but discord doesn't
and discord sends unix timestamps
I am talking about <t:timestamp> notation
this is wierd behaviour lol but ill take it
thanks!