utility.presence: more image fixes try 2
This commit is contained in:
parent
6176ba0b07
commit
b5fac022bd
1 changed files with 3 additions and 3 deletions
|
@ -791,7 +791,7 @@ presence.callback = async function (msg, line) {
|
|||
if (activity.assets.large_image != null) {
|
||||
let largeUrl;
|
||||
if (activity.assets.large_image.startsWith("mp:")) {
|
||||
largeUrl = activity.large_image.replace(
|
||||
largeUrl = activity.assets.large_image.replace(
|
||||
"mp:",
|
||||
"https://media.discordapp.net/"
|
||||
);
|
||||
|
@ -802,7 +802,7 @@ presence.callback = async function (msg, line) {
|
|||
let smallUrl;
|
||||
if (activity.assets.small_image != null) {
|
||||
if (activity.assets.small_image.startsWith("mp:")) {
|
||||
smallUrl = activity.small_image.replace(
|
||||
smallUrl = activity.assets.small_image.replace(
|
||||
"mp:",
|
||||
"https://media.discordapp.net/"
|
||||
);
|
||||
|
@ -844,7 +844,7 @@ presence.callback = async function (msg, line) {
|
|||
) {
|
||||
let smallUrl;
|
||||
if (activity.assets.small_image.startsWith("mp:")) {
|
||||
smallUrl = activity.small_image.replace(
|
||||
smallUrl = activity.assets.small_image.replace(
|
||||
"mp:",
|
||||
"https://media.discordapp.net/"
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue