mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 11:10:38 +00:00
Compare game objects before comparing their names
See also http://git.io/vuR7p
This commit is contained in:
parent
404829a19d
commit
4184e51ec3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue