fix: displayed the userName instead of displayName

This commit is contained in:
Nemo 2021-11-14 12:25:02 +01:00
parent c2fdd44901
commit 5106d3c637
1 changed files with 1 additions and 2 deletions

View File

@ -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);