Skip to content

kient / User

Class: User ​

src/structures/user.ts:11

Data structure of a user account

Extends ​

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
_kientreadonlyKient-BaseUser._kientsrc/structures/base.ts:4
email?publicstringThe user's email address This will only display if the permissions of the token allow-src/structures/user.ts:16
idpublicnumberThe user's idBaseUser.idsrc/structures/base-user.ts:14
profilePicturepublicstringThe user's profile picture urlBaseUser.profilePicturesrc/structures/base-user.ts:24
usernamepublicstringThe username of the userBaseUser.usernamesrc/structures/base-user.ts:19

Methods ​

toJSON() ​

ts
toJSON(): ExcludeFunctionsAndPrivate<User>

src/structures/user.ts:25

Returns ​

ExcludeFunctionsAndPrivate<User>

Overrides ​

BaseUser.toJSON