utility.presence: fix missing party on listening
This commit is contained in:
parent
f48b7e1d2b
commit
4173371c11
1 changed files with 7 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue