moonlink.js / Exports / Structure

Class: Structure

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Structure(): Structure

Returns

Structure

Properties

db

Static db: MoonlinkDatabase

Defined in

src/@Utils/Structure.ts:346


manager

Static manager: MoonlinkManager

Defined in

src/@Utils/Structure.ts:345

Methods

extend

extend<K, T>(name, extender): T

Type parameters

NameType
Kextends keyof Extendable
Textends typeof MoonlinkManager | typeof MoonlinkNode | typeof MoonlinkPlayer | typeof MoonlinkQueue | typeof MoonlinkRestFul | typeof MoonlinkDatabase | typeof MoonlinkFilters | typeof MoonlinkTrack | typeof Players | typeof Nodes

Parameters

NameType
nameK
extender(target: ExtendableK) => T

Returns

T

Defined in

src/@Utils/Structure.ts:347


get

get<K>(name): ExtendableK

Type parameters

NameType
Kextends keyof Extendable

Parameters

NameType
nameK

Returns

ExtendableK

Defined in

src/@Utils/Structure.ts:369


init

init(manager): void

Parameters

NameType
managerMoonlinkManager

Returns

void

Defined in

src/@Utils/Structure.ts:360