ClientUser
Represents a client user that extends the base User class. This class is used to interact with the authenticated user.
Signature
export declare class ClientUser extends UserJSDoc
@extendsUser
Properties
2Methods
3Properties
readonly application: GatewayReadyDispatchData['application'];bot: boolean;Indicates if the user is a bot.
@type{true}
Methods
constructorConstructorconstructor(client: UsingClient, data: GatewayReadyDispatchData['user'], application: GatewayReadyDispatchData['application']);fetch(): Promise<ClientUserStructure>;Fetches the current user data from the API.
Returns
A promise that resolves to the ClientUserStructure.
edit(body: RESTPatchAPICurrentUserJSONBody): Promise<ClientUserStructure>;Edits the current user data.
Parameters
body- The data to update the user with.
Returns
A promise that resolves to the updated ClientUserStructure.