userinfo: untry rq

This commit is contained in:
Cynthia Foxwell 2025-07-16 16:05:01 -06:00
parent c515f1d401
commit a3f4f6aa96
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -511,7 +511,7 @@ userinfo.callback = async function (msg, line) {
const baseUrl = `https://cdn.discordapp.com/assets/collectibles/${nameplate.asset}`; const baseUrl = `https://cdn.discordapp.com/assets/collectibles/${nameplate.asset}`;
let imageUrl = baseUrl + "/static.png"; let imageUrl = baseUrl + "/static.png";
if (palette) { if (palette) {
try { //try {
const static = await fetch(imageUrl) const static = await fetch(imageUrl)
.then((res) => res.arrayBuffer()) .then((res) => res.arrayBuffer())
.then((b) => Buffer.from(b)); .then((b) => Buffer.from(b));
@ -531,9 +531,9 @@ userinfo.callback = async function (msg, line) {
filename: "nameplate.png", filename: "nameplate.png",
}); });
imageUrl = "attachment://nameplate.png"; imageUrl = "attachment://nameplate.png";
} catch { //} catch {
// noop // noop
} //}
} }
nameplateEmbed = { nameplateEmbed = {