mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +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
|
* 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 });
|
||||||
|
|||||||
Reference in New Issue
Block a user