kient / ChatUser
Class: ChatUser
src/structures/chat-user.ts:14
Data structure of a user account
Extends
Properties
Property | Modifier | Type | Description | Inherited from | Defined in |
---|---|---|---|---|---|
_kient | readonly | Kient | - | BaseUser ._kient | src/structures/base.ts:4 |
id | public | number | The user's id | BaseUser .id | src/structures/base-user.ts:14 |
isVerified | public | boolean | The user's verification status | - | src/structures/chat-user.ts:18 |
profilePicture | public | string | The user's profile picture url | BaseUser .profilePicture | src/structures/base-user.ts:24 |
slug | public | string | The user's channel slug | - | src/structures/chat-user.ts:23 |
username | public | string | The username of the user | BaseUser .username | src/structures/base-user.ts:19 |
Methods
toJSON()
ts
toJSON(): ExcludeFunctionsAndPrivate<ChatUser>
src/structures/chat-user.ts:43
Returns
ExcludeFunctionsAndPrivate
<ChatUser
>
Overrides
constructChatUser()
ts
static constructChatUser(data): ExcludeFunctionsAndPrivate<ChatUser>
src/structures/chat-user.ts:33
Parameters
Parameter | Type |
---|---|
data | ChatUserData |