From cb4dee574d15be1ca73ad6ee6930ac0a3fccc356 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 10 Oct 2022 13:40:10 -0600 Subject: [PATCH] utility.presence: null check custom status emotes --- src/modules/utility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/utility.js b/src/modules/utility.js index d27d6e9..deece41 100644 --- a/src/modules/utility.js +++ b/src/modules/utility.js @@ -728,7 +728,7 @@ presence.callback = async function (msg, line) { const activity = target.presence.activities[index]; if (activity.type == 4) { let emote = ""; - if (activity.emoji.id) { + if (activity.emoji?.id) { emote = `<${activity.emoji.animated ? "a" : ""}:${ activity.emoji.name }:${activity.emoji.id}>`;