Skip to main content
Version: 0.8.0

Abstract Class: Base

The base class for all structures.

Extended by​

Constructors​

Constructor​

protected new Base(client, data): Base

Parameters​

ParameterType
clientClient
data{ _id: string; }
data._idstring

Returns​

Base

Properties​

cachedAt​

cachedAt: number


client​

protected readonly client: Client


id​

readonly id: string

Methods​

_clone()​

_clone(): this

Helper to quickly clone a structure

Returns​

this


equals()​

equals(other): boolean

Compares this object with another to see if they represent the same entity.

Parameters​

ParameterType
otherstring | Base

Returns​

boolean


toString()​

toString(): string

Returns the UUID string when the object is cast to a string.

Returns​

string