utility.presence: add party info
This commit is contained in:
parent
d666a194c0
commit
00b4c7a59a
1 changed files with 7 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue