moonlink.js / Exports / MoonlinkEvents

Interface: MoonlinkEvents

Table of contents

Properties

Properties

autoLeaved

autoLeaved: (player: MoonlinkPlayer, track?: any) => void

Type declaration

▸ (player, track?): void

Parameters
NameType
playerMoonlinkPlayer
track?any
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:22


debug

debug: (...args: any) => void

Type declaration

▸ (...args): void

Parameters
NameType
...argsany
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:23


nodeClose

nodeClose: (node: MoonlinkNode, code: number, reason: any) => void

Type declaration

▸ (node, code, reason): void

Parameters
NameType
nodeMoonlinkNode
codenumber
reasonany
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:27


nodeCreate

nodeCreate: (node: MoonlinkNode) => void

Type declaration

▸ (node): void

Parameters
NameType
nodeMoonlinkNode
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:24


nodeDestroy

nodeDestroy: (node: MoonlinkNode) => void

Type declaration

▸ (node): void

Parameters
NameType
nodeMoonlinkNode
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:25


nodeError

nodeError: (node: MoonlinkNode, error: Error) => void

Type declaration

▸ (node, error): void

Parameters
NameType
nodeMoonlinkNode
errorError
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:29


nodeRaw

nodeRaw: (node: MoonlinkNode, payload: object) => void

Type declaration

▸ (node, payload): void

Parameters
NameType
nodeMoonlinkNode
payloadobject
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:28


nodeReconnect

nodeReconnect: (node: MoonlinkNode) => void

Type declaration

▸ (node): void

Parameters
NameType
nodeMoonlinkNode
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:26


playerCreated

playerCreated: (guildId: string) => void

Type declaration

▸ (guildId): void

Parameters
NameType
guildIdstring
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:35


playerDisconnect

playerDisconnect: (player: MoonlinkPlayer) => void

Type declaration

▸ (player): void

Parameters
NameType
playerMoonlinkPlayer
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:36


playerMove

playerMove: (player: MoonlinkPlayer, newVoiceChannel: string, oldVoiceChannel: string) => void

Type declaration

▸ (player, newVoiceChannel, oldVoiceChannel): void

Parameters
NameType
playerMoonlinkPlayer
newVoiceChannelstring
oldVoiceChannelstring
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:38


playerResume

playerResume: (player: MoonlinkPlayer) => void

Type declaration

▸ (player): void

Parameters
NameType
playerMoonlinkPlayer
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:37


queueEnd

queueEnd: (player: MoonlinkPlayer, track?: any) => void

Type declaration

▸ (player, track?): void

Parameters
NameType
playerMoonlinkPlayer
track?any
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:34


socketClosed

socketClosed: (player: MoonlinkPlayer, track: any) => void

Type declaration

▸ (player, track): void

Parameters
NameType
playerMoonlinkPlayer
trackany
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:43


trackEnd

trackEnd: (player: MoonlinkPlayer, track: any, payload?: any) => void

Type declaration

▸ (player, track, payload?): void

Parameters
NameType
playerMoonlinkPlayer
trackany
payload?any
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:31


trackError

trackError: (player: MoonlinkPlayer, track: any) => void

Type declaration

▸ (player, track): void

Parameters
NameType
playerMoonlinkPlayer
trackany
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:33


trackStart

trackStart: (player: MoonlinkPlayer, current: any) => void

Type declaration

▸ (player, current): void

Parameters
NameType
playerMoonlinkPlayer
currentany
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:30


trackStuck

trackStuck: (player: MoonlinkPlayer, track: any) => void

Type declaration

▸ (player, track): void

Parameters
NameType
playerMoonlinkPlayer
trackany
Returns

void

Defined in

src/@Managers/MoonlinkManager.ts:32