mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +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.discriminator === obj.discriminator &&
|
||||||
this.avatar === obj.avatar &&
|
this.avatar === obj.avatar &&
|
||||||
this.status === obj.status &&
|
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
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user