TimeStamp slash command v14.5.0
How's it going everyone? Right now, I'm making a discord bot that has basic utility commands and some fun ones too! I think it would be pretty damn useful for my bot to be able to convert a time(with an integer output of hour, minute, etc.) into a formatter timestamp (like this website does https://hammertime.cyou/). Does anyone know how to do this? I can't find it online.
7 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.keep in mind I would like the user to be able to copy and paste it anywhere
so maybe like t:1664784000:t
i.e. without the <>
Ah thanks man!
But that formats it to actual time
I would like it to be formatted as a discord time stamp
<t:1664784000:t> like this
<t:1664784000:t>
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Documentation suggestion for @SkoopyDev: time
Formats a date into a short date-time TimestampStylesString
A message formatting timestamp style, as defined in here. (more...)
Ah ok