mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
Clean up Actions code (#591)
This commit is contained in:
committed by
Amish Shah
parent
432c5ccc82
commit
59a5862f2d
@@ -17,9 +17,7 @@ class UserUpdateAction extends Action {
|
||||
|
||||
const oldUser = cloneObject(client.user);
|
||||
client.user.setup(data);
|
||||
|
||||
client.emit(Constants.Events.USER_UPDATE, oldUser, client.user);
|
||||
|
||||
return {
|
||||
old: oldUser,
|
||||
updated: client.user,
|
||||
|
||||
Reference in New Issue
Block a user