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 = [];
|
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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue