From 1f8f3ab0f8dbd346154bbfa14a98726b8df25d57 Mon Sep 17 00:00:00 2001 From: Jacob Morrison Date: Sat, 19 Jun 2021 12:27:54 -0400 Subject: [PATCH] fix(presenceUpdate): fire when only state/details change on an activity (#5846) --- src/structures/Presence.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/structures/Presence.js b/src/structures/Presence.js index 9442b2904..c3dd423e7 100644 --- a/src/structures/Presence.js +++ b/src/structures/Presence.js @@ -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) ); }