mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
fix(User): compare flags in #equals (#6750)
This commit is contained in:
@@ -10,7 +10,7 @@ class GuildMemberUpdateAction extends Action {
|
||||
const user = client.users.cache.get(data.user.id);
|
||||
if (!user) {
|
||||
client.users._add(data.user);
|
||||
} else if (!user.equals(data.user)) {
|
||||
} else if (!user._equals(data.user)) {
|
||||
client.actions.UserUpdate.handle(data.user);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ class PresenceUpdateAction extends Action {
|
||||
if (!user) return;
|
||||
|
||||
if (data.user?.username) {
|
||||
if (!user.equals(data.user)) this.client.actions.UserUpdate.handle(data.user);
|
||||
if (!user._equals(data.user)) this.client.actions.UserUpdate.handle(data.user);
|
||||
}
|
||||
|
||||
const guild = this.client.guilds.cache.get(data.guild_id);
|
||||
|
||||
Reference in New Issue
Block a user