utility.presence: fix missing party on listening

This commit is contained in:
Cynthia Foxwell 2024-06-14 23:24:58 -06:00
parent f48b7e1d2b
commit 4173371c11
1 changed files with 7 additions and 2 deletions

View File

@ -1707,8 +1707,13 @@ presence.callback = async function (msg, line) {
descLines.push(`**${details}**`);
}
if (activity.state) descLines.push(activity.state);
if (activity.assets?.large_text)
descLines.push(activity.assets.large_text);
if (activity.assets?.large_text) {
let albumLine = activity.assets.large_text;
if (activity.party?.size) {
albumLine += ` (${activity.party.size[0]} of ${activity.party.size[1]})`;
}
descLines.push(albumLine);
}
} else {
if (activity.details) descLines.push(activity.details);
if (activity.state) {