This commit is contained in:
Louis Mazin 2025-12-09 20:52:35 +01:00
parent e09378a55b
commit 4305b630a1

View File

@ -34,7 +34,7 @@ module.exports = {
for (const chunk of chunks) { for (const chunk of chunks) {
for (const link of chunk) { for (const link of chunk) {
const user = await interaction.client.users.fetch(link.discord_id).catch(() => null); const user = await interaction.client.users.fetch(link.discord_id).catch(() => null);
const discordName = user ? user.globalName : link.discord_username; const discordName = user.globalName ? user.globalName : link.discord_username;
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';