This commit is contained in:
Louis Mazin 2025-12-09 22:14:14 +01:00
parent b1ac51aa65
commit f926d864e3

View File

@ -33,13 +33,19 @@ module.exports = {
for (const chunk of chunks) { for (const chunk of chunks) {
for (const link of chunk) { for (const link of chunk) {
const discordName = `<@${link.discord_id}>`; const discordMention = `<@${link.discord_id}>`;
const lastConn = link.lastConnection const lastConn = link.lastConnection
? `📅 Dernière connexion: <t:${Math.floor(new Date(link.lastConnection).getTime() / 1000)}:R>` ? `📅 Dernière connexion: <t:${Math.floor(new Date(link.lastConnection).getTime() / 1000)}:R>`
: '📅 Dernière connexion: Jamais vu'; : '📅 Dernière connexion: Jamais vu';
embed.addFields({ embed.addFields({
name: `👤 ${discordName}`, name: '👤 Compte lié',
value: `🎮 Palworld: **${link.palworld_username}**\n🆔 Steam ID: \`${link.steam_id}\`\n🎯 Player ID: \`${link.player_id || 'N/A'}\`\n ${lastConn}\n📅 Lié le: ${new Date(link.linked_at).toLocaleDateString('fr-FR')}`, value: `${discordMention}
🎮 Palworld: **${link.palworld_username}**
🆔 Steam ID: \`${link.steam_id}\`
🎯 Player ID: \`${link.player_id || 'N/A'}\`
${lastConn}
📅 Lié le: ${new Date(link.linked_at).toLocaleDateString('fr-FR')}`,
inline: false inline: false
}); });
} }