mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Emit -ed and fixed presence vs. userUpdated check
This commit is contained in:
@@ -48,6 +48,18 @@ class User extends Equality{
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
equals(obj){
|
||||
if(obj instanceof User)
|
||||
return (
|
||||
this.id === obj.id &&
|
||||
this.username === obj.username &&
|
||||
this.discriminator === obj.discriminator &&
|
||||
this.avatar === obj.avatar
|
||||
);
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = User;
|
||||
Reference in New Issue
Block a user