fix(UserUpdateAction): rely on client.user when ids match (#6511)

This commit is contained in:
Kevin
2021-08-24 22:21:07 +02:00
committed by GitHub
parent 57b94b9adf
commit 141864917a

View File

@@ -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)) {