Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.69 KB

File metadata and controls

35 lines (28 loc) · 1.69 KB
description
It is the default component for a 'user', it contains every basic information about the user, those can be seen by anyone.

🙇♂ User

Properties

Property Description Type
_client Client Client
id User id String
type Type of user, bot or user String
username User's username String
_createdAt Timestamp of the user's creation. Number
avatarURL user's avatar url String|null
bannerURL user's banner url String|null
createdAt string representation of the _createdAt timestamp. Date

Constructor

new User(rawData, client)
Properties Description Type Required?
rawData raw data received from ws and converted to JSON Object true
client Client Client true

{% hint style="danger" %} Do not use this constructor unless you know what you're doing. This constructor is used to return you rawdata into component. {% endhint %}