Fix discordRPC
This commit is contained in:
parent
958e1c9977
commit
48bc7cd2d4
2 changed files with 2 additions and 2 deletions
|
@ -102,6 +102,7 @@ export default class DiscordRichPresence {
|
|||
return;
|
||||
}
|
||||
const listenURL = `https://cider.sh/p?s&id=${attributes.playParams.id}` // cider://play/s/[id] (for song)
|
||||
const AMWebURL = `https://music.apple.com/us/song/${attributes.playParams.catalogId}`
|
||||
this._activity = {
|
||||
details: attributes.name,
|
||||
state: `${attributes.artistName ? `by ${attributes.artistName}` : ''}`,
|
||||
|
@ -113,7 +114,7 @@ export default class DiscordRichPresence {
|
|||
|
||||
buttons: [
|
||||
{label: "Listen on Cider", url: listenURL},
|
||||
{label: "Open In Apple Music", url: attributes.songURL},
|
||||
{label: "Open In Apple Music", url: AMWebURL},
|
||||
]
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue