moonlink.js / Exports / MoonlinkEvents
Interface: MoonlinkEvents
Table of contents
Properties
- autoLeaved
- debug
- nodeClose
- nodeCreate
- nodeDestroy
- nodeError
- nodeRaw
- nodeReconnect
- playerCreated
- playerDisconnect
- playerMove
- playerResume
- queueEnd
- socketClosed
- trackEnd
- trackError
- trackStart
- trackStuck
Properties
autoLeaved
• autoLeaved: (player
: MoonlinkPlayer
, track?
: any
) => void
Type declaration
▸ (player
, track?
): void
Parameters
Name | Type |
---|---|
player | MoonlinkPlayer |
track? | any |
Returns
void
Defined in
src/@Managers/MoonlinkManager.ts:22
debug
• debug: (...args
: any
) => void
Type declaration
▸ (...args
): void
Parameters
Name | Type |
---|---|
...args | any |
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
Name | Type |
---|---|
node | MoonlinkNode |
code | number |
reason | any |
Returns
void
Defined in
src/@Managers/MoonlinkManager.ts:27
nodeCreate
• nodeCreate: (node
: MoonlinkNode
) => void
Type declaration
▸ (node
): void
Parameters
Name | Type |
---|---|
node | MoonlinkNode |
Returns
void
Defined in
src/@Managers/MoonlinkManager.ts:24
nodeDestroy
• nodeDestroy: (node
: MoonlinkNode
) => void
Type declaration
▸ (node
): void
Parameters
Name | Type |
---|---|
node | MoonlinkNode |
Returns
void
Defined in
src/@Managers/MoonlinkManager.ts:25
nodeError
• nodeError: (node
: MoonlinkNode
, error
: Error
) => void
Type declaration
▸ (node
, error
): void
Parameters
Name | Type |
---|---|
node | MoonlinkNode |
error | Error |
Returns
void
Defined in
src/@Managers/MoonlinkManager.ts:29
nodeRaw
• nodeRaw: (node
: MoonlinkNode
, payload
: object
) => void
Type declaration
▸ (node
, payload
): void
Parameters
Name | Type |
---|---|
node | MoonlinkNode |
payload | object |
Returns
void
Defined in
src/@Managers/MoonlinkManager.ts:28
nodeReconnect
• nodeReconnect: (node
: MoonlinkNode
) => void
Type declaration
▸ (node
): void
Parameters
Name | Type |
---|---|
node | MoonlinkNode |
Returns
void
Defined in
src/@Managers/MoonlinkManager.ts:26
playerCreated
• playerCreated: (guildId
: string
) => void
Type declaration
▸ (guildId
): void
Parameters
Name | Type |
---|---|
guildId | string |
Returns
void
Defined in
src/@Managers/MoonlinkManager.ts:35
playerDisconnect
• playerDisconnect: (player
: MoonlinkPlayer
) => void
Type declaration
▸ (player
): void
Parameters
Name | Type |
---|---|
player | MoonlinkPlayer |
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
Name | Type |
---|---|
player | MoonlinkPlayer |
newVoiceChannel | string |
oldVoiceChannel | string |
Returns
void
Defined in
src/@Managers/MoonlinkManager.ts:38
playerResume
• playerResume: (player
: MoonlinkPlayer
) => void
Type declaration
▸ (player
): void
Parameters
Name | Type |
---|---|
player | MoonlinkPlayer |
Returns
void
Defined in
src/@Managers/MoonlinkManager.ts:37
queueEnd
• queueEnd: (player
: MoonlinkPlayer
, track?
: any
) => void
Type declaration
▸ (player
, track?
): void
Parameters
Name | Type |
---|---|
player | MoonlinkPlayer |
track? | any |
Returns
void
Defined in
src/@Managers/MoonlinkManager.ts:34
socketClosed
• socketClosed: (player
: MoonlinkPlayer
, track
: any
) => void
Type declaration
▸ (player
, track
): void
Parameters
Name | Type |
---|---|
player | MoonlinkPlayer |
track | any |
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
Name | Type |
---|---|
player | MoonlinkPlayer |
track | any |
payload? | any |
Returns
void
Defined in
src/@Managers/MoonlinkManager.ts:31
trackError
• trackError: (player
: MoonlinkPlayer
, track
: any
) => void
Type declaration
▸ (player
, track
): void
Parameters
Name | Type |
---|---|
player | MoonlinkPlayer |
track | any |
Returns
void
Defined in
src/@Managers/MoonlinkManager.ts:33
trackStart
• trackStart: (player
: MoonlinkPlayer
, current
: any
) => void
Type declaration
▸ (player
, current
): void
Parameters
Name | Type |
---|---|
player | MoonlinkPlayer |
current | any |
Returns
void
Defined in
src/@Managers/MoonlinkManager.ts:30
trackStuck
• trackStuck: (player
: MoonlinkPlayer
, track
: any
) => void
Type declaration
▸ (player
, track
): void
Parameters
Name | Type |
---|---|
player | MoonlinkPlayer |
track | any |
Returns
void