fix: displayed the userName instead of displayName
This commit is contained in:
parent
c2fdd44901
commit
5106d3c637
@ -51,8 +51,7 @@ module.exports = {
|
|||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
const question = interaction.options.get('question').value;
|
const question = interaction.options.get('question').value;
|
||||||
const i = Math.floor(Math.random() * responses.length);
|
const i = Math.floor(Math.random() * responses.length);
|
||||||
const reply = "*" + interaction.user.username + " a demandé : " + question + "*\n" + quote( responses[i] ) ;
|
const reply = "*" + interaction.member.displayName + " a demandé : " + question + "*\n" + quote( responses[i] ) ;
|
||||||
//const reply = responses[i] + "\n >>> " + question;
|
|
||||||
await interaction.reply(reply)
|
await interaction.reply(reply)
|
||||||
.then(console.log("Reply sent to 8ball command."))
|
.then(console.log("Reply sent to 8ball command."))
|
||||||
.catch(console.error);
|
.catch(console.error);
|
||||||
|
Loading…
Reference in New Issue
Block a user