Fix stacked heartbeats on reconnect and fix documentation

This commit is contained in:
Amish Shah
2016-10-01 20:21:28 +01:00
parent 7c26603773
commit 530035e14b
5 changed files with 3 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ class PresenceUpdateHandler extends AbstractHandler {
const oldUser = cloneObject(user);
user.patch(data.user);
if (!user.equals(oldUser)) {
client.emit(Constants.Events.USER_DETAILS_UPDATE, oldUser, user);
client.emit(Constants.Events.USER_UPDATE, oldUser, user);
}
if (guild) {