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

View file

@ -1707,8 +1707,13 @@ presence.callback = async function (msg, line) {
descLines.push(`**${details}**`); descLines.push(`**${details}**`);
} }
if (activity.state) descLines.push(activity.state); if (activity.state) descLines.push(activity.state);
if (activity.assets?.large_text) if (activity.assets?.large_text) {
descLines.push(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 { } else {
if (activity.details) descLines.push(activity.details); if (activity.details) descLines.push(activity.details);
if (activity.state) { if (activity.state) {