kient / User
Class: User
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 |
email? | public | string | The user's email address This will only display if the permissions of the token allow | - | src/structures/user.ts:16 |
id | public | number | The user's id | BaseUser .id | src/structures/base-user.ts:14 |
profilePicture | public | string | The user's profile picture url | BaseUser .profilePicture | src/structures/base-user.ts:24 |
username | public | string | The username of the user | BaseUser .username | src/structures/base-user.ts:19 |
Methods
toJSON()
ts
toJSON(): ExcludeFunctionsAndPrivate<User>
Returns
ExcludeFunctionsAndPrivate
<User
>