Use user.displayName in setTitle instead of interaction.user.username #4
|
@ -36,7 +36,7 @@ module.exports = {
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setColor(0x6441a5)
|
.setColor(0x6441a5)
|
||||||
.setAuthor({ name: `${user.displayName}`, iconURL: user.avatarURL() })
|
.setAuthor({ name: `${user.displayName}`, iconURL: user.avatarURL() })
|
||||||
.setTitle(`${interaction.user.username}'s beaten games`)
|
.setTitle(`${user.displayName}'s beaten games`)
|
||||||
.setDescription(desc)
|
.setDescription(desc)
|
||||||
.setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() })
|
.setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() })
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
Loading…
Reference in New Issue