moonlink.js / Exports

moonlink.js

Table of contents

Classes

Interfaces

Type Aliases

Variables

Functions

Type Aliases

Constructor

Ƭ Constructor<T>: (...args: any) => T

Type parameters

Name
T

Type declaration

• (...args): T

Parameters
NameType
...argsany
Returns

T

Defined in

src/@Typings/index.ts:15


Endpoint

Ƭ Endpoint: string

Defined in

src/@Typings/index.ts:187


LoadType

Ƭ LoadType: "track" | "playlist" | "search" | "empty" | "error"

Defined in

src/@Typings/index.ts:59


SearchPlatform

Ƭ SearchPlatform: "youtube" | "youtubemusic" | "soundcloud" | string

Defined in

src/@Typings/index.ts:78


SortType

Ƭ SortType: "memory" | "cpuLavalink" | "cpuSystem" | "calls" | "playingPlayers" | "players"

Defined in

src/@Typings/index.ts:26

Variables

State

Const State: Object

Type declaration

NameType
AUTORESUMINGstring
CONNECTEDstring
CONNECTINGstring
DISCONNECTEDstring
DISCONNECTINGstring
MOVINGstring
READYstring
RECONNECTINGstring
RESUMINGstring

Defined in

src/@Utils/Structure.ts:15


version

Const version: string

Defined in

index.ts:1

Functions

makeRequest

makeRequest<T>(uri, options, data?): Promise<T>

Type parameters

Name
T

Parameters

NameType
uristring
optionsRequestOptions | RequestOptions & SecureContextOptions & { checkServerIdentity?: (hostname: string, cert: PeerCertificate) => Error | undefined ; rejectUnauthorized?: boolean ; servername?: string } & { method?: string }
data?Record<string, any>

Returns

Promise<T>

Defined in

src/@Services/MoonlinkMakeRequest.ts:6