diff --git a/src/modules/utility.js b/src/modules/utility.js index ef244b6..0d39dd5 100644 --- a/src/modules/utility.js +++ b/src/modules/utility.js @@ -569,7 +569,7 @@ jumbo.callback = async function (msg, line) { const name = emojiNames[line] ? `\\:${emojiNames[line]}\\:` - : await getNamesFromString(line)[0][1]; + : await getNamesFromString(line).then((name) => name[0]?.[1]); const statusCode = await fetch(url, {method: "HEAD"}).then( (res) => res.status