From 34024f5ef6192fa0da5b7d6aa7e2d219066ad9b0 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sun, 29 Aug 2021 20:55:39 +0100 Subject: [PATCH] docs: Fix JSDoc for `ClientUser#edit` (#6554) --- src/structures/ClientUser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index 7a2b25489..c8b0550ef 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -43,7 +43,7 @@ class ClientUser extends User { /** * Data used to edit the logged in client - * @typdef {Object} ClientUserEditData + * @typedef {Object} ClientUserEditData * @property {string} [username] The new username * @property {BufferResolvable|Base64Resolvable} [avatar] The new avatar */ @@ -51,6 +51,7 @@ class ClientUser extends User { /** * Edits the logged in client. * @param {ClientUserEditData} data The new data + * @returns {Promise} */ async edit(data) { const newData = await this.client.api.users('@me').patch({ data });