mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Move all util methods into class
Remove TransformMessageOptions altogether
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const Action = require('./Action');
|
||||
const Constants = require('../../util/Constants');
|
||||
const cloneObject = require('../../util/CloneObject');
|
||||
const Util = require('../../util/Util');
|
||||
|
||||
class UserUpdateAction extends Action {
|
||||
handle(data) {
|
||||
@@ -14,7 +14,7 @@ class UserUpdateAction extends Action {
|
||||
};
|
||||
}
|
||||
|
||||
const oldUser = cloneObject(client.user);
|
||||
const oldUser = Util.cloneObject(client.user);
|
||||
client.user.patch(data);
|
||||
client.emit(Constants.Events.USER_UPDATE, oldUser, client.user);
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user