mirror of
https://github.com/danbulant/discord.js
synced 2026-06-17 13:41:29 +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.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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue