hoshii / Exports / ClientUser

ClientUser

Represents a client user

Hierarchy

  • Base<string>

    ClientUser

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new ClientUser(data, client)

Create a new ClientUser

Parameters

NameTypeDescription
dataObjectThe raw data of the client user
data.botIdstring-
data.createdAtstring-
data.createdBystring-
data.idstring-
data.namestring-
clientClientThe client

Overrides

Base.constructor

Defined in

lib/structures/ClientUser.ts:56open in new window

Properties

botID

botID: string

The ID of the bot

Defined in

lib/structures/ClientUser.ts:29open 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 bot was created at

Defined in

lib/structures/ClientUser.ts:34open in new window


createdBy

createdBy: string

The ID of the user who created the bot

Defined in

lib/structures/ClientUser.ts:39open 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 bot

Defined in

lib/structures/ClientUser.ts:44open in new window


type

type: string

The type of the user

Defined in

lib/structures/ClientUser.ts:49open in new window

Accessors

bot

get bot(): boolean

Whether the user is a bot

Returns

boolean

Defined in

lib/structures/ClientUser.ts:71open in new window

Methods

toJSON

toJSON(): ClientUserData

Returns the JSON representation of the item

Returns

ClientUserData

Overrides

Base.toJSON

Defined in

lib/structures/ClientUser.ts:75open in new window


update

Protected update(data): void

Parameters

NameType
dataObject
data.botIdstring
data.createdAtstring
data.createdBystring
data.idstring
data.namestring

Returns

void

Overrides

Base.update

Defined in

lib/structures/ClientUser.ts:86open in new window

Last Updated:
Contributors: Reinhardt