Skip to content

Commit

Permalink
fix targetRole missing in licence.js
Browse files Browse the repository at this point in the history
  • Loading branch information
BodomBeach committed Jun 7, 2024
1 parent 9ffa6a6 commit 61c985a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules/
.vscode/
.env
logs/app.log
tmp
tmp
db/
6 changes: 3 additions & 3 deletions src/events/commands/licence.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const invoke = async (interaction) => {
console.log(`License succesfully activated for user ${username}`);
});

await interaction.editReply({ content: successMessage(currentYear), ephemeral: true })
await interaction.editReply({ content: successMessage(currentYear, targetRole), ephemeral: true })
const helpMessage = await new HelpMessage(interaction.guild).execute()
await interaction.followUp({ content: helpMessage, ephemeral: true });

Expand All @@ -69,11 +69,11 @@ const invoke = async (interaction) => {

};

const successMessage = (year) => {
const successMessage = (year, role) => {
return `
:white_check_mark: Bien joué, ton numéro de licence a bien été activé
:partying_face: Tu as désormais le rôle **${targetRole}** et tu a accès à tous les salons :duck:
:partying_face: Tu as désormais le rôle **${role}** et tu a accès à tous les salons :duck:
Voici quelques astuces pour t'aider à t'y retrouver dans le discord :arrow_down:
`
Expand Down

0 comments on commit 61c985a

Please sign in to comment.