hoshii / Exports / User

User

Represents a user

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new User(data, client)

Create a new User

Parameters

NameTypeDescription
dataRawUserThe raw data of the user
clientClientThe client

Overrides

Base.constructor

Defined in

lib/structures/User.ts:70open in new window

Properties

avatar

avatar: string

The avatar of the user

Defined in

lib/structures/User.ts:38open in new window


banner: string

The banner of the user

Defined in

lib/structures/User.ts:43open in new window


bot

bot: boolean

Whether the user is a bot

Defined in

lib/structures/User.ts:48open in new window


client

client: Client

The bot client

Inherited from

Base.client

Defined in

lib/structures/Base.ts:13open in new window


createdAt

createdAt: Date

The date the user was created at

Defined in

lib/structures/User.ts:53open in new window


id

id: string

The ID of the item

Inherited from

Base.id

Defined in

lib/structures/Base.ts:16open in new window


name

name: string

The name of the user

Defined in

lib/structures/User.ts:58open in new window


type

type: UserTypes

The type of the user

Defined in

lib/structures/User.ts:63open in new window

Methods

toJSON

toJSON(): UserData

Returns the JSON representation of the item

Returns

UserData

Overrides

Base.toJSON

Defined in

lib/structures/User.ts:83open in new window


update

Protected update(raw): void

Parameters

NameType
rawRawUser | RawUserSummary | RawServerMember

Returns

void

Overrides

Base.update

Defined in

lib/structures/User.ts:95open in new window

Last Updated:
Contributors: Reinhardt