utility.presence: add party info

This commit is contained in:
Cynthia Foxwell 2023-04-21 19:53:34 -06:00
parent d666a194c0
commit 00b4c7a59a
1 changed files with 7 additions and 1 deletions

View File

@ -826,7 +826,13 @@ presence.callback = async function (msg, line) {
descLines.push(activity.assets.large_text);
} else {
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) {