jumbo: ignore errors just in case
This commit is contained in:
parent
7183f483ce
commit
149883adff
1 changed files with 4 additions and 2 deletions
|
@ -32,8 +32,10 @@ jumbo.callback = async function (msg, line) {
|
|||
|
||||
const fields = [];
|
||||
if (msg.guildID != null) {
|
||||
const allEmotes = await hf.bot.requestHandler.request("GET", `/guilds/${msg.guildID}/emojis`, true);
|
||||
const emote = allEmotes.find((e) => e.id === id);
|
||||
const allEmotes = await hf.bot.requestHandler
|
||||
.request("GET", `/guilds/${msg.guildID}/emojis`, true)
|
||||
.catch(() => {});
|
||||
const emote = allEmotes?.find((e) => e.id === id);
|
||||
if (emote?.user) {
|
||||
fields.push({
|
||||
name: "Uploader",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue