mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
fix: Client#userUpdate receiving wrong packet
This commit is contained in:
@@ -5,8 +5,8 @@ class UserUpdateAction extends Action {
|
||||
handle(data) {
|
||||
const client = this.client;
|
||||
|
||||
const newUser = client.users.get(data.user.id);
|
||||
const oldUser = newUser._update(data.user);
|
||||
const newUser = client.users.get(data.id);
|
||||
const oldUser = newUser._update(data);
|
||||
|
||||
if (!oldUser.equals(newUser)) {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user