We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
time
1 parent 61c97fd commit f7da3caCopy full SHA for f7da3ca
src/commands/draft.ts
@@ -1,4 +1,5 @@
1
import assert from 'assert'
2
+import { time } from 'discord.js'
3
import {
4
SlashCommand,
5
SlashCreator,
@@ -108,7 +109,7 @@ ${draft.content}
108
109
110
id: ${draft.id}
111
author: ${draft.author.user.tag}
-timestamp: ${draft.timestamp.toLocaleString()}
112
+timestamp: ${time(draft.timestamp, 'f')} (${time(draft.timestamp, 'R')})
113
`
114
}
115
@@ -285,7 +286,7 @@ ${current.content}
285
286
287
id: ${current.id}
288
author: ${current.author.user.tag}
-timestamp: <t:${current.timestamp.getUTCMilliseconds()}:f> (<t:${current.timestamp.getUTCMilliseconds()}:R>)
289
+timestamp: ${time(current.timestamp, 'f')} (${time(current.timestamp, 'R')})
290
`,
291
ctx,
292
extraOpts: {
0 commit comments