mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Compare game objects before comparing their names
See also http://git.io/vuR7p
This commit is contained in:
@@ -49,7 +49,7 @@ export default class User extends Equality{
|
||||
this.discriminator === obj.discriminator &&
|
||||
this.avatar === obj.avatar &&
|
||||
this.status === obj.status &&
|
||||
(this.game && obj.game && this.game.name === obj.game.name)
|
||||
(this.game === obj.game || this.game && obj.game && this.game.name === obj.game.name)
|
||||
);
|
||||
else
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user