fix: Show user nickname in interaction reply if set instead of username

This commit is contained in:
Marius Begby committed 2023-07-15 03:53:25 +02:00
1 parent 391627d510
commit 923e7a6845
8 files changed
+29 -17

No files matched your search

+2 -2
View File
@@ -67,7 +67,7 @@ module.exports = {
embeds: [
new EmbedBuilder()
.setAuthor({
name: interaction.user.username,
name: interaction.member.nickname || interaction.user.username,
iconURL: interaction.user.avatarURL()
})
.setDescription(
@@ -103,7 +103,7 @@ module.exports = {
embeds: [
new EmbedBuilder()
.setAuthor({
name: interaction.user.username,
name: interaction.member.nickname || interaction.user.username,
iconURL: interaction.user.avatarURL()
})
.setDescription(