fix error spam
This commit is contained in:
parent
cf780bca2b
commit
235ffe0767
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue