diff --git a/src/modules/utility/userinfo.js b/src/modules/utility/userinfo.js index e0497ce..30944e9 100644 --- a/src/modules/utility/userinfo.js +++ b/src/modules/utility/userinfo.js @@ -511,29 +511,29 @@ userinfo.callback = async function (msg, line) { const baseUrl = `https://cdn.discordapp.com/assets/collectibles/${nameplate.asset}`; let imageUrl = baseUrl + "/static.png"; if (palette) { - try { - const static = await fetch(imageUrl) - .then((res) => res.arrayBuffer()) - .then((b) => Buffer.from(b)); + //try { + const static = await fetch(imageUrl) + .then((res) => res.arrayBuffer()) + .then((b) => Buffer.from(b)); - const bg_light = nameplateBackground(palette.lightBackground); - bg_light.composite([{input: static}]); - const bg_dark = nameplateBackground(palette.darkBackground); - bg_dark.composite([{input: static}]); + const bg_light = nameplateBackground(palette.lightBackground); + bg_light.composite([{input: static}]); + const bg_dark = nameplateBackground(palette.darkBackground); + bg_dark.composite([{input: static}]); - const final = sharp({create: {width: 448, height: 168, channels: 4, background: "transparent"}}); - final.composite([ - {input: await bg_light.toBuffer(), gravity: "north"}, - {input: await bg_dark.toBuffer(), gravity: "south"}, - ]); - attachments.push({ - file: await final.png().toBuffer(), - filename: "nameplate.png", - }); - imageUrl = "attachment://nameplate.png"; - } catch { - // noop - } + const final = sharp({create: {width: 448, height: 168, channels: 4, background: "transparent"}}); + final.composite([ + {input: await bg_light.toBuffer(), gravity: "north"}, + {input: await bg_dark.toBuffer(), gravity: "south"}, + ]); + attachments.push({ + file: await final.png().toBuffer(), + filename: "nameplate.png", + }); + imageUrl = "attachment://nameplate.png"; + //} catch { + // noop + //} } nameplateEmbed = {