From 45c7b93cf03a6576f85388537d517afaa08628a2 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Mon, 3 Jul 2023 21:14:53 +0500 Subject: [PATCH] ? --- commands/Moderation/warns.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/Moderation/warns.js b/commands/Moderation/warns.js index bec76b79..0edf9fe2 100644 --- a/commands/Moderation/warns.js +++ b/commands/Moderation/warns.js @@ -54,7 +54,7 @@ class Warns extends BaseCommand { const embed = new EmbedBuilder() .setAuthor({ name: interaction.translate("moderation/warns:SANCTIONS_OF", { - member: member.nickname || member.user.username, + member: member.user.getUsername(), }), iconURL: member.displayAvatarURL({ extension: "png", @@ -68,7 +68,7 @@ class Warns extends BaseCommand { if (memberData.sanctions.length === 0) { embed.setDescription(interaction.translate("moderation/warns:NO_SANCTIONS", { - member: member.nickname || member.user.username, + member: member.user.getUsername(), })); return interaction.reply({ embeds: [embed],