Skip to content

Commit

Permalink
chore: check flags in equals()
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Feb 17, 2023
1 parent 7529af8 commit 6467268
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/discord.js/src/structures/GuildMember.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ class GuildMember extends Base {
this.avatar === member.avatar &&
this.pending === member.pending &&
this.communicationDisabledUntilTimestamp === member.communicationDisabledUntilTimestamp &&
this.flags.bitfield === member.flags.bitfield &&
(this._roles === member._roles ||
(this._roles.length === member._roles.length && this._roles.every((role, i) => role === member._roles[i])))
);
Expand Down

0 comments on commit 6467268

Please sign in to comment.