mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs: Fix JSDoc for ClientUser#edit (#6554)
This commit is contained in:
@@ -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<ClientUser>}
|
||||
*/
|
||||
async edit(data) {
|
||||
const newData = await this.client.api.users('@me').patch({ data });
|
||||
|
||||
Reference in New Issue
Block a user