Interface RainlinkEventsInterface
interface RainlinkEventsInterface { debug: [logs
: string]; nodeConnect: [node
: RainlinkNode]; nodeDisconnect: [node
: RainlinkNode, code
: number, reason
: string | Buffer]; nodeReconnect: [node
: RainlinkNode]; nodeClosed: [node
: RainlinkNode]; nodeError: [node
: RainlinkNode, error
: Error]; playerCreate: [player
: RainlinkPlayer]; playerDestroy: [player
: RainlinkPlayer]; playerException: [player
: RainlinkPlayer, data
: Record<string, any>]; playerUpdate: [player
: RainlinkPlayer, data
: Record<string, any>]; playerPause: [player
: RainlinkPlayer, track
: RainlinkTrack]; playerResume: [player
: RainlinkPlayer, data
: RainlinkTrack]; playerWebsocketClosed: [player
: RainlinkPlayer, data
: Record<string, any>]; trackStart: [player
: RainlinkPlayer, track
: RainlinkTrack]; trackEnd: [player
: RainlinkPlayer, track
: RainlinkTrack]; trackStuck: [player
: RainlinkPlayer, data
: Record<string, any>]; trackResolveError: [player
: RainlinkPlayer, track
: RainlinkTrack, message
: string]; queueAdd: [player
: RainlinkPlayer, queue
: RainlinkQueue, track
: RainlinkTrack[]]; queueRemove: [player
: RainlinkPlayer, queue
: RainlinkQueue, track
: RainlinkTrack]; queueShuffle: [player
: RainlinkPlayer, queue
: RainlinkQueue]; queueClear: [player
: RainlinkPlayer, queue
: RainlinkQueue]; queueEmpty: [player
: RainlinkPlayer, queue
: RainlinkQueue]; } Events
debug
debug: [logs: string]
nodeConnect
nodeDisconnect
nodeDisconnect: [node
: RainlinkNode, code
: number, reason
: string | Buffer] nodeReconnect
nodeClosed
nodeError
playerCreate
playerDestroy
playerException
playerUpdate
playerPause
playerResume
playerWebsocketClosed
playerWebsocketClosed: [player
: RainlinkPlayer, data
: Record<string, any>] trackStart
trackEnd
trackStuck
trackResolveError
queueAdd
queueRemove
queueShuffle
queueClear
queueEmpty
Emitted when rainlink have a debug log. Rainlink#debug