mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +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) {
|
equals(activity) {
|
||||||
return (
|
return (
|
||||||
this === activity ||
|
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