Skip to content

kient / ChatUser

Class: ChatUser

src/structures/chat-user.ts:14

Data structure of a user account

Extends

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
_kientreadonlyKient-BaseUser._kientsrc/structures/base.ts:4
idpublicnumberThe user's idBaseUser.idsrc/structures/base-user.ts:14
isVerifiedpublicbooleanThe user's verification status-src/structures/chat-user.ts:18
profilePicturepublicstringThe user's profile picture urlBaseUser.profilePicturesrc/structures/base-user.ts:24
slugpublicstringThe user's channel slug-src/structures/chat-user.ts:23
usernamepublicstringThe username of the userBaseUser.usernamesrc/structures/base-user.ts:19

Methods

toJSON()

ts
toJSON(): ExcludeFunctionsAndPrivate<ChatUser>

src/structures/chat-user.ts:43

Returns

ExcludeFunctionsAndPrivate<ChatUser>

Overrides

BaseUser.toJSON


constructChatUser()

ts
static constructChatUser(data): ExcludeFunctionsAndPrivate<ChatUser>

src/structures/chat-user.ts:33

Parameters

ParameterType
dataChatUserData

Returns

ExcludeFunctionsAndPrivate<ChatUser>