Skip to content

Commit 44d52bf

Browse files
authored
Better emoji checking
1 parent 6305417 commit 44d52bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/discord.js/src/structures/Presence.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ class Activity {
255255
this.url === activity.url &&
256256
this.state === activity.state &&
257257
this.details === activity.details &&
258-
this.emoji?.id === activity.emoji?.id &&
259-
this.emoji?.name === activity.emoji?.name)
258+
(this.emoji?.id ? this.emoji.id === activity.emoji?.id : this.emoji?.name === activity.emoji?.name))
260259
);
261260
}
262261

0 commit comments

Comments
 (0)