utility.presence: add party info

This commit is contained in:
Cynthia Foxwell 2023-04-21 19:53:34 -06:00
parent d666a194c0
commit 00b4c7a59a

View file

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