Merge pull request #721 from andleo17/master

feat: shows artists names in status on discord presence
This commit is contained in:
2025-11-04 09:48:22 +01:00
committed by GitHub

View File

@@ -85,6 +85,7 @@ const getActivity = (): SetActivity => {
const artists = pad(mediaInfo.artists); const artists = pad(mediaInfo.artists);
if (mediaInfo.url) { if (mediaInfo.url) {
presence.statusDisplayType = 1;
presence.details = `${detailsPrefix}${title}`; presence.details = `${detailsPrefix}${title}`;
presence.state = artists ? artists : "unknown artist(s)"; presence.state = artists ? artists : "unknown artist(s)";
presence.largeImageKey = mediaInfo.image; presence.largeImageKey = mediaInfo.image;