userinfo: thanks cdn for not liking // in path
This commit is contained in:
parent
a3f4f6aa96
commit
d19826f1e1
1 changed files with 23 additions and 23 deletions
|
@ -509,9 +509,9 @@ userinfo.callback = async function (msg, line) {
|
|||
.catch(() => {});
|
||||
|
||||
const baseUrl = `https://cdn.discordapp.com/assets/collectibles/${nameplate.asset}`;
|
||||
let imageUrl = baseUrl + "/static.png";
|
||||
let imageUrl = baseUrl + "static.png";
|
||||
if (palette) {
|
||||
//try {
|
||||
try {
|
||||
const static = await fetch(imageUrl)
|
||||
.then((res) => res.arrayBuffer())
|
||||
.then((b) => Buffer.from(b));
|
||||
|
@ -531,9 +531,9 @@ userinfo.callback = async function (msg, line) {
|
|||
filename: "nameplate.png",
|
||||
});
|
||||
imageUrl = "attachment://nameplate.png";
|
||||
//} catch {
|
||||
} catch {
|
||||
// noop
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
nameplateEmbed = {
|
||||
|
@ -547,7 +547,7 @@ userinfo.callback = async function (msg, line) {
|
|||
{name: "Dark Background", value: palette?.darkBackground ?? "*Unknown*", inline: true},
|
||||
{
|
||||
name: "\u200b",
|
||||
value: `[PNG](${baseUrl}/static.png)\u3000[WebM](${baseUrl}/asset.webm)\u3000[APNG](${baseUrl}/img.png)`,
|
||||
value: `[PNG](${baseUrl}static.png)\u3000[WebM](${baseUrl}asset.webm)\u3000[APNG](${baseUrl}img.png)`,
|
||||
inline: false,
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue