Skip to content

kient / ChatUser

Class: ChatUser

src/structures/chat-user.ts:22

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
identity?publicobjectThe user's chat appearance-src/structures/chat-user.ts:36
identity.badgespublicobject[]The user's acquired chat badges-src/structures/chat-user.ts:45
identity.usernameColorpublicstringThe user's color in chat-src/structures/chat-user.ts:40
isVerifiedpublicbooleanThe user's verification status-src/structures/chat-user.ts:26
profilePicturepublicstringThe user's profile picture urlBaseUser.profilePicturesrc/structures/base-user.ts:24
slugpublicstringThe user's channel slug-src/structures/chat-user.ts:31
usernamepublicstringThe username of the userBaseUser.usernamesrc/structures/base-user.ts:19

Methods

toJSON()

ts
toJSON(): ExcludeFunctionsAndPrivate<ChatUser>

src/structures/chat-user.ts:93

Returns

ExcludeFunctionsAndPrivate<ChatUser>

Overrides

BaseUser.toJSON


constructChatUser()

ts
static constructChatUser(data): ExcludeFunctionsAndPrivate<ChatUser>

src/structures/chat-user.ts:77

Parameters

ParameterType
dataChatUserData

Returns

ExcludeFunctionsAndPrivate<ChatUser>