diff --git a/commands/eightBall.js b/commands/eightBall.js index 7ad3ac1..c0ac81f 100644 --- a/commands/eightBall.js +++ b/commands/eightBall.js @@ -51,8 +51,7 @@ module.exports = { async execute(interaction) { const question = interaction.options.get('question').value; const i = Math.floor(Math.random() * responses.length); - const reply = "*" + interaction.user.username + " a demandé : " + question + "*\n" + quote( responses[i] ) ; - //const reply = responses[i] + "\n >>> " + question; + const reply = "*" + interaction.member.displayName + " a demandé : " + question + "*\n" + quote( responses[i] ) ; await interaction.reply(reply) .then(console.log("Reply sent to 8ball command.")) .catch(console.error);