diff --git a/pageUpdater.js b/pageUpdater.js index 145e1d0..5904b7d 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -555,7 +555,7 @@ api.events.on("lanyardUpdate", async () => { } var status = api.lanyard.custom_status - if (status.emoji.id) { + if (status && status.emoji && status.emoji.id) { if (status.emoji.animated) { var emoji = Buffer.from(await (await fetch(`https://cdn.discordapp.com/emojis/${status.emoji.id}.gif?quality=lossless`)).arrayBuffer()) } else {