@@ -24,6 +24,8 @@ export const verifyCommand: ChatInputCommand = {
24
24
const token = await createVerificationState ( interaction . user . id )
25
25
const url = `${ base } /crowdin/verify?token=${ encodeURIComponent ( token ) } `
26
26
27
+ const expireAt = Math . floor ( Date . now ( ) / 1000 ) + 15 * 60 // now + 15 minutes
28
+
27
29
const embed = new EmbedBuilder ( )
28
30
. setColor ( 0x1bd96a )
29
31
. setTitle ( 'Link your Crowdin account' )
@@ -34,9 +36,10 @@ export const verifyCommand: ChatInputCommand = {
34
36
'To continue, please click the link down below.' ,
35
37
' ' ,
36
38
`**[[Click here to continue →]](${ url } )**` ,
39
+ ' ' ,
40
+ `-# This link will expire <t:${ expireAt } :R>` ,
37
41
] . join ( '\n' ) ,
38
42
)
39
- . setFooter ( { text : 'This link will expire in 15 minutes' } )
40
43
41
44
await interaction . reply ( {
42
45
embeds : [ embed ] ,
@@ -51,8 +54,19 @@ export const verifyCommand: ChatInputCommand = {
51
54
// content: `To link your Modrinth account, open: ${url}\nThis link expires in 15 minutes.`,
52
55
// ephemeral: true,
53
56
// })
57
+ const embed = new EmbedBuilder ( )
58
+ . setColor ( 0x1bd96a )
59
+ . setTitle ( 'Link your Modrinth account' )
60
+ . setDescription (
61
+ [
62
+ 'Modrinth account verification is coming soon!' ,
63
+ ' ' ,
64
+ "We'll let you know when it's ready." ,
65
+ ] . join ( '\n' ) ,
66
+ )
67
+
54
68
await interaction . reply ( {
55
- content : `Modrinth verification is coming soon! We'll let you know when it's ready.` ,
69
+ embeds : [ embed ] ,
56
70
flags : 'Ephemeral' ,
57
71
} )
58
72
return
0 commit comments