Skip to content

Commit

Permalink
fix(presenceUpdate): fire when only state/details change on an activi…
Browse files Browse the repository at this point in the history
…ty (#5846)
  • Loading branch information
JMTK committed Jun 19, 2021
1 parent 44e2ee7 commit 1f8f3ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/structures/Presence.js
Expand Up @@ -275,7 +275,12 @@ class Activity {
equals(activity) {
return (
this === activity ||
(activity && this.name === activity.name && this.type === activity.type && this.url === activity.url)
(activity &&
this.name === activity.name &&
this.type === activity.type &&
this.url === activity.url &&
this.state === activity.state &&
this.details === activity.details)
);
}

Expand Down

0 comments on commit 1f8f3ab

Please sign in to comment.