Skip to content

Commit

Permalink
fix(Activity): Fix equals() not checking for differing emoji (#8841)
Browse files Browse the repository at this point in the history
* Fix presence updating

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

Co-authored-by: Almeida <almeidx@pm.me>

* Update Presence.js

* Better emoji checking

* Revert "Better emoji checking"

This reverts commit 44d52bf.

Co-authored-by: Almeida <almeidx@pm.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Nov 25, 2022
1 parent d275480 commit 7e06f68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/discord.js/src/structures/Presence.js
Expand Up @@ -254,7 +254,9 @@ class Activity {
this.type === activity.type &&
this.url === activity.url &&
this.state === activity.state &&
this.details === activity.details)
this.details === activity.details &&
this.emoji?.id === activity.emoji?.id &&
this.emoji?.name === activity.emoji?.name)
);
}

Expand Down

0 comments on commit 7e06f68

Please sign in to comment.