mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(presenceUpdate): fire when only state/details change on an activity (#5846)
This commit is contained in:
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user