From 8f3bd3807233fca2a057948406bdc8aef008b6cb Mon Sep 17 00:00:00 2001 From: Ryan Munro Date: Wed, 14 Jun 2023 05:17:21 +1000 Subject: [PATCH] fix(User): check global name in equals (#9631) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/discord.js/src/structures/User.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/discord.js/src/structures/User.js b/packages/discord.js/src/structures/User.js index 092cc3c6ffcc..e48fd0293ab3 100644 --- a/packages/discord.js/src/structures/User.js +++ b/packages/discord.js/src/structures/User.js @@ -272,6 +272,7 @@ class User extends Base { this.id === user.id && this.username === user.username && this.discriminator === user.discriminator && + this.globalName === user.globalName && this.avatar === user.avatar && this.flags?.bitfield === user.flags?.bitfield && this.banner === user.banner && @@ -291,6 +292,7 @@ class User extends Base { this.id === user.id && this.username === user.username && this.discriminator === user.discriminator && + this.globalName === user.global_name && this.avatar === user.avatar && this.flags?.bitfield === user.public_flags && ('banner' in user ? this.banner === user.banner : true) &&