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 <[email protected]>

* Update Presence.js

* Better emoji checking

* Revert "Better emoji checking"

This reverts commit 44d52bf.

Co-authored-by: Almeida <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored 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
Original file line number Diff line number Diff line change
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.