HASH 5c580f494de6
DATE 2025-12-07
SUBJECT discord: player profile embed - include combined time
FILES 1 CHANGED
HASH 5c580f494de6
DATE 2025-12-07
SUBJECT discord: player profile embed -
include combined time
FILES 1 CHANGED
┌─ web/src/discord/embeds/player-profile.ts ─────────────────────────────────┐
│ diff --git a/web/src/discord/embeds/player-profile.ts b/web/src/discord/embeds/pla │
│ yer-profile.ts │
│ index 9cdd9b9..0e9536e 100644 │
│ --- a/web/src/discord/embeds/player-profile.ts │
│ +++ b/web/src/discord/embeds/player-profile.ts │
│ @@ -91,6 +91,17 @@ export function createPlayerProfileEmbed(profile: PlayerProfile │
│ Data): Embed { │
│ }); │
│ } │
│ │
│ + // combined time field │
│ + if (seasonData?.combined_best_time) { │
│ + const combinedTime = formatDurationFromMs(seasonData.combined_best_time); │
│ + const dungeonsCompleted = seasonData.dungeons_completed || 0; │
│ + fields.push({ │
│ + name: "Combined Time", │
│ + value: `\`${combinedTime}\` (${dungeonsCompleted}/9 dungeons)`, │
│ + inline: false, │
│ + }); │
│ + } │
│ + │
│ // best runs field │
│ if (seasonData?.best_runs) { │
│ const bestRunsArray = Object.values(seasonData.best_runs); │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...cord/embeds/player-profile.ts ───┐
│ diff --git a/web/src/discord/embeds/player-p │
│ rofile.ts b/web/src/discord/embeds/player-pr │
│ ofile.ts │
│ index 9cdd9b9..0e9536e 100644 │
│ --- a/web/src/discord/embeds/player-profile. │
│ ts │
│ +++ b/web/src/discord/embeds/player-profile. │
│ ts │
│ @@ -91,6 +91,17 @@ export function createPla │
│ yerProfileEmbed(profile: PlayerProfileData): │
│ Embed { │
│ }); │
│ } │
│ │
│ + // combined time field │
│ + if (seasonData?.combined_best_time) { │
│ + const combinedTime = formatDurationFrom │
│ Ms(seasonData.combined_best_time); │
│ + const dungeonsCompleted = seasonData.du │
│ ngeons_completed || 0; │
│ + fields.push({ │
│ + name: "Combined Time", │
│ + value: `\`${combinedTime}\` (${dungeo │
│ nsCompleted}/9 dungeons)`, │
│ + inline: false, │
│ + }); │
│ + } │
│ + │
│ // best runs field │
│ if (seasonData?.best_runs) { │
│ const bestRunsArray = Object.values(sea │
│ sonData.best_runs); │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET