docs: Fix JSDoc for ClientUser#edit (#6554)

This commit is contained in:
Jiralite
2021-08-29 20:55:39 +01:00
committed by GitHub
parent 9301c9b420
commit 34024f5ef6

View File

@@ -43,7 +43,7 @@ class ClientUser extends User {
/** /**
* Data used to edit the logged in client * Data used to edit the logged in client
* @typdef {Object} ClientUserEditData * @typedef {Object} ClientUserEditData
* @property {string} [username] The new username * @property {string} [username] The new username
* @property {BufferResolvable|Base64Resolvable} [avatar] The new avatar * @property {BufferResolvable|Base64Resolvable} [avatar] The new avatar
*/ */
@@ -51,6 +51,7 @@ class ClientUser extends User {
/** /**
* Edits the logged in client. * Edits the logged in client.
* @param {ClientUserEditData} data The new data * @param {ClientUserEditData} data The new data
* @returns {Promise<ClientUser>}
*/ */
async edit(data) { async edit(data) {
const newData = await this.client.api.users('@me').patch({ data }); const newData = await this.client.api.users('@me').patch({ data });