utility.presence: fix spotify images
This commit is contained in:
parent
fec39bd822
commit
a06894bc86
1 changed files with 5 additions and 0 deletions
|
@ -798,6 +798,11 @@ presence.callback = async function (msg, line) {
|
||||||
"mp:",
|
"mp:",
|
||||||
"https://media.discordapp.net/"
|
"https://media.discordapp.net/"
|
||||||
);
|
);
|
||||||
|
} else if (activity.assets.large_image.startsWith("spotify:")) {
|
||||||
|
largeUrl = activity.assets.large_image.replace(
|
||||||
|
"spotify:",
|
||||||
|
"https://i.scdn.co/image/"
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
largeUrl = `https://cdn.discordapp.com/app-assets/${activity.application_id}/${activity.assets.large_image}.png`;
|
largeUrl = `https://cdn.discordapp.com/app-assets/${activity.application_id}/${activity.assets.large_image}.png`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue