From 44d52bfde8d24e2fce30318d51a40766ef85e73c Mon Sep 17 00:00:00 2001 From: Eejit <76887639+Eejit43@users.noreply.github.com> Date: Wed, 16 Nov 2022 21:06:05 -0500 Subject: [PATCH] Better emoji checking --- packages/discord.js/src/structures/Presence.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/discord.js/src/structures/Presence.js b/packages/discord.js/src/structures/Presence.js index b642f0ab9..7c37f3063 100644 --- a/packages/discord.js/src/structures/Presence.js +++ b/packages/discord.js/src/structures/Presence.js @@ -255,8 +255,7 @@ class Activity { this.url === activity.url && this.state === activity.state && this.details === activity.details && - this.emoji?.id === activity.emoji?.id && - this.emoji?.name === activity.emoji?.name) + (this.emoji?.id ? this.emoji.id === activity.emoji?.id : this.emoji?.name === activity.emoji?.name)) ); }