@@ -17,7 +17,7 @@ class Constants {
17
17
static readonly SECRET_NAME = "secret" ;
18
18
}
19
19
20
- const getSlashCommandRoll = (
20
+ const getSlashCommand = (
21
21
name : string ,
22
22
lang : string = "en"
23
23
) : Omit <
@@ -26,26 +26,26 @@ const getSlashCommandRoll = (
26
26
> => {
27
27
return new SlashCommandBuilder ( )
28
28
. setName ( _ ( name , lang ) )
29
- . setDescription ( _ ( "🎲 Launch dices" , lang ) )
29
+ . setDescription ( `🎲 ${ _ ( "Launch dices" , lang ) } ` )
30
30
. addNumberOption ( ( option ) =>
31
31
option
32
32
. setName ( _ ( Constants . DICES_NAME , lang ) )
33
- . setDescription ( _ ( "Dices number. By default 1. " , lang ) )
33
+ . setDescription ( _ ( "Dices number ( default 1) " , lang ) )
34
34
)
35
35
. addNumberOption ( ( option ) =>
36
36
option
37
37
. setName ( _ ( Constants . FACES_NAME , lang ) )
38
- . setDescription ( _ ( "Faces number. By default 6. " , lang ) )
38
+ . setDescription ( _ ( "Faces number ( default 6) " , lang ) )
39
39
)
40
40
. addNumberOption ( ( option ) =>
41
41
option
42
42
. setName ( _ ( Constants . MODIFICATION_NAME , lang ) )
43
- . setDescription ( _ ( "Roll modification. Default 0. " , lang ) )
43
+ . setDescription ( _ ( "Roll modification" , lang ) )
44
44
)
45
45
. addBooleanOption ( ( option ) =>
46
46
option
47
47
. setName ( _ ( Constants . SECRET_NAME , lang ) )
48
- . setDescription ( _ ( "Just for you. " , lang ) )
48
+ . setDescription ( _ ( "Just for you" , lang ) )
49
49
) ;
50
50
} ;
51
51
@@ -84,7 +84,7 @@ const getInteraction =
84
84
iconURL : interaction . client . user ?. displayAvatarURL ( ) ,
85
85
} ) ;
86
86
embed . setDescription (
87
- `${ user . tag } ${ _ ( "roll" , lang ) } ${ dices } d${ faces } 🎲`
87
+ `${ user } ${ _ ( "roll" , lang ) } ${ dices } d${ faces } 🎲`
88
88
) ;
89
89
embed . addField ( _ ( "Results" , lang ) , JSON . stringify ( diceRoll ) ) ;
90
90
if ( mod ) {
@@ -115,7 +115,7 @@ const getInteraction =
115
115
116
116
const commands : Command [ ] = getCommands (
117
117
Constants . COMMAND_NAME ,
118
- getSlashCommandRoll ,
118
+ getSlashCommand ,
119
119
getInteraction
120
120
) ;
121
121
0 commit comments