hoshii / Exports / Base

Base<T>

Represents a base item

Type parameters

NameType
Tstring | number

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Base<T>(id, client)

Create a new base instance

Type parameters

NameType
Tstring | number

Parameters

NameTypeDescription
idTThe ID of the item
clientClientThe client

Defined in

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

Properties

client

client: Client

The bot client

Defined in

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


id

id: T

The ID of the item

Defined in

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

Methods

toJSON

toJSON(): BaseData<T>

Returns the JSON representation of the item

Returns

BaseData<T>

Defined in

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


update

Protected update(data): void

Parameters

NameType
dataunknown

Returns

void

Defined in

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

Last Updated:
Contributors: Reinhardt