mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
docs: add missing docstring for Client#userUpdate (#2930)
* docs: add missing docstring for Client#userUpdate * docs: indentn't * docs: indentn't 2
This commit is contained in:
@@ -9,6 +9,12 @@ class UserUpdateAction extends Action {
|
|||||||
const oldUser = newUser._update(data.user);
|
const oldUser = newUser._update(data.user);
|
||||||
|
|
||||||
if (!oldUser.equals(newUser)) {
|
if (!oldUser.equals(newUser)) {
|
||||||
|
/**
|
||||||
|
* Emitted whenever a user's details (e.g. username) are changed.
|
||||||
|
* @event Client#userUpdate
|
||||||
|
* @param {User} oldUser The user before the update
|
||||||
|
* @param {User} newUser The user after the update
|
||||||
|
*/
|
||||||
client.emit(Events.USER_UPDATE, oldUser, newUser);
|
client.emit(Events.USER_UPDATE, oldUser, newUser);
|
||||||
return {
|
return {
|
||||||
old: oldUser,
|
old: oldUser,
|
||||||
|
|||||||
Reference in New Issue
Block a user