User
Represents a user
Hierarchy
Base
<string
>↳
User
↳↳
ServerMember
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new User(data
, client
)
Create a new User
Parameters
Name | Type | Description |
---|---|---|
data | RawUser | The raw data of the user |
client | Client | The client |
Overrides
Defined in
Properties
avatar
• avatar: string
The avatar of the user
Defined in
banner
• banner: string
The banner of the user
Defined in
bot
• bot: boolean
Whether the user is a bot
Defined in
client
• client: Client
The bot client
Inherited from
Defined in
createdAt
• createdAt: Date
The date the user was created at
Defined in
id
• id: string
The ID of the item
Inherited from
Defined in
name
• name: string
The name of the user
Defined in
type
• type: UserTypes
The type of the user
Defined in
Methods
toJSON
▸ toJSON(): UserData
Returns the JSON representation of the item
Returns
Overrides
Defined in
update
▸ Protected
update(raw
): void
Parameters
Name | Type |
---|---|
raw | RawUser | RawUserSummary | RawServerMember |
Returns
void