File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ EMBED_FOOTER_ICON_URL=
15
15
EMBED_THUMBNAIL_URL =
16
16
EMBED_TIMESTAMP = false
17
17
18
- # Guilds
19
- GUILD_ID =
20
-
21
18
# Channels
22
19
COMMUNITY_SUPPORT_FORUM_ID = 1194455551212527696
23
20
@@ -28,7 +25,6 @@ TRANSLATOR_ROLE_ID=
28
25
VERIFIED_CREATOR_ROLE_ID =
29
26
PROOFREADER_ROLE_ID =
30
27
31
-
32
28
# Tags
33
29
COMMUNITY_SUPPORT_FORUM_SOLVED_TAG_ID = 1200218987125014659
34
30
Original file line number Diff line number Diff line change 1
- import { SlashCommandBuilder } from 'discord.js'
1
+ import { EmbedBuilder , SlashCommandBuilder } from 'discord.js'
2
2
3
3
import type { ChatInputCommand } from '@/types/commands'
4
4
import { createVerificationState } from '@/web'
@@ -23,8 +23,23 @@ export const verifyCommand: ChatInputCommand = {
23
23
if ( sub === 'crowdin' ) {
24
24
const token = await createVerificationState ( interaction . user . id )
25
25
const url = `${ base } /crowdin/verify?token=${ encodeURIComponent ( token ) } `
26
+
27
+ const embed = new EmbedBuilder ( )
28
+ . setColor ( 0x1bd96a )
29
+ . setTitle ( 'Link your Crowdin account' )
30
+ . setDescription (
31
+ [
32
+ 'We need to verify your Crowdin account to link it with your Discord.' ,
33
+ ' ' ,
34
+ 'To continue, please click the link down below.' ,
35
+ ' ' ,
36
+ url ,
37
+ ] . join ( '\n' ) ,
38
+ )
39
+ . setFooter ( { text : 'This link will expire in 15 minutes' } )
40
+
26
41
await interaction . reply ( {
27
- content : `To link your Crowdin account, open: ${ url } \nThis link expires in 15 minutes.` ,
42
+ embeds : [ embed ] ,
28
43
flags : 'Ephemeral' ,
29
44
} )
30
45
return
You can’t perform that action at this time.
0 commit comments