timestamps

i need help with timestamps, this example command but how i do something like this with the time?
No description
9 Replies
d.js toolkit
d.js toolkit13mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
gostia66
gostia66OP13mo ago
i defined the message.createdTimestamp in my code
No description
gostia66
gostia66OP13mo ago
and when i try to divide or anything else it just shows me other things not seconds
gostia66
gostia66OP13mo ago
it just shows me this
No description
gostia66
gostia66OP13mo ago
No description
gostia66
gostia66OP13mo ago
ok
gostia66
gostia66OP13mo ago
@Qjuh ok so i did it it worked but how i convert this to seconds ?
No description
No description
gostia66
gostia66OP13mo ago
Its not seconds I want it to count the seconds from when the first command was executed I dont know how to do it I saved the date in database Now how i count how much seconds pass
crackerberries
crackerberries13mo ago
store when the command was first executed when the user comes back, subtract that from the current time
Want results from more Discord servers?
Add your server