diff --git a/commands/utility/check-linked.js b/commands/utility/check-linked.js index a6e7cca..2a2ced3 100644 --- a/commands/utility/check-linked.js +++ b/commands/utility/check-linked.js @@ -35,8 +35,8 @@ module.exports = { for (const chunk of chunks) { for (const link of chunk) { const user = await interaction.client.users.fetch(link.discord_id).catch(() => null); - const discordName = user ? user.tag : link.discord_username; - console.log(user); + const discordName = user ? user.globalName : link.discord_username; + console.log(link); embed.addFields({ name: `👤 ${discordName}`, value: `🎮 Palworld: **${link.palworld_username}**\n🆔 Steam ID: \`${link.steam_id}\`\n🎯 Player ID: \`${link.player_id || 'N/A'}\`\n📅 Lié le: ${new Date(link.linked_at).toLocaleDateString('fr-FR')}`,