fix error spam

This commit is contained in:
bingus_violet 2024-11-30 17:24:21 -06:00
parent cf780bca2b
commit 235ffe0767

View file

@ -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 {