Skip to content

Commit

Permalink
fix(UserUpdateAction): rely on client.user when ids match (#6511)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbioj committed Aug 24, 2021
1 parent 57b94b9 commit 1418649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/actions/UserUpdate.js
Expand Up @@ -7,7 +7,7 @@ class UserUpdateAction extends Action {
handle(data) {
const client = this.client;

const newUser = client.users.cache.get(data.id);
const newUser = data.id === client.user.id ? client.user : client.users.cache.get(data.id);
const oldUser = newUser._update(data);

if (!oldUser.equals(newUser)) {
Expand Down

0 comments on commit 1418649

Please sign in to comment.