jumbo: ignore errors just in case

This commit is contained in:
Cynthia Foxwell 2025-05-06 17:15:18 -06:00
parent 7183f483ce
commit 149883adff
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -32,8 +32,10 @@ jumbo.callback = async function (msg, line) {
const fields = []; const fields = [];
if (msg.guildID != null) { if (msg.guildID != null) {
const allEmotes = await hf.bot.requestHandler.request("GET", `/guilds/${msg.guildID}/emojis`, true); const allEmotes = await hf.bot.requestHandler
const emote = allEmotes.find((e) => e.id === id); .request("GET", `/guilds/${msg.guildID}/emojis`, true)
.catch(() => {});
const emote = allEmotes?.find((e) => e.id === id);
if (emote?.user) { if (emote?.user) {
fields.push({ fields.push({
name: "Uploader", name: "Uploader",