Skip to content

Commit 15104dd

Browse files
author
Juanan
committed
🚧 Change dice command changes
1 parent 7c35f67 commit 15104dd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎src/commands/dice.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Constants {
1717
static readonly SECRET_NAME = "secret";
1818
}
1919

20-
const getSlashCommandRoll = (
20+
const getSlashCommand = (
2121
name: string,
2222
lang: string = "en"
2323
): Omit<
@@ -26,26 +26,26 @@ const getSlashCommandRoll = (
2626
> => {
2727
return new SlashCommandBuilder()
2828
.setName(_(name, lang))
29-
.setDescription(_("🎲 Launch dices", lang))
29+
.setDescription(`🎲 ${_("Launch dices", lang)}`)
3030
.addNumberOption((option) =>
3131
option
3232
.setName(_(Constants.DICES_NAME, lang))
33-
.setDescription(_("Dices number. By default 1.", lang))
33+
.setDescription(_("Dices number (default 1)", lang))
3434
)
3535
.addNumberOption((option) =>
3636
option
3737
.setName(_(Constants.FACES_NAME, lang))
38-
.setDescription(_("Faces number. By default 6.", lang))
38+
.setDescription(_("Faces number (default 6)", lang))
3939
)
4040
.addNumberOption((option) =>
4141
option
4242
.setName(_(Constants.MODIFICATION_NAME, lang))
43-
.setDescription(_("Roll modification. Default 0.", lang))
43+
.setDescription(_("Roll modification", lang))
4444
)
4545
.addBooleanOption((option) =>
4646
option
4747
.setName(_(Constants.SECRET_NAME, lang))
48-
.setDescription(_("Just for you.", lang))
48+
.setDescription(_("Just for you", lang))
4949
);
5050
};
5151

@@ -84,7 +84,7 @@ const getInteraction =
8484
iconURL: interaction.client.user?.displayAvatarURL(),
8585
});
8686
embed.setDescription(
87-
`${user.tag} ${_("roll", lang)} ${dices}d${faces} 🎲`
87+
`${user} ${_("roll", lang)} ${dices}d${faces} 🎲`
8888
);
8989
embed.addField(_("Results", lang), JSON.stringify(diceRoll));
9090
if (mod) {
@@ -115,7 +115,7 @@ const getInteraction =
115115

116116
const commands: Command[] = getCommands(
117117
Constants.COMMAND_NAME,
118-
getSlashCommandRoll,
118+
getSlashCommand,
119119
getInteraction
120120
);
121121

0 commit comments

Comments
 (0)