HoshimiEvents

The events for the manager.

Signature

export interface HoshimiEvents

Properties

debug: [    level: DebugLevels,    message: string];

Emitted when the manager emits a debug message.

Parameters

level
The debug level of the message.
message
The message that was emitted.
error: [    error: Error | unknown];

Emitted when the manager emits an error.

Parameters

error
The error that was emitted.
nodeError: [    node: NodeStructure,    error: Error | unknown];

Emitted when the node gives an error.

Parameters

node
The node that emitted the event.
error
The error that was received.
nodeReady: [    node: NodeStructure,    retries: number,    payload: Ready];

Emitted when the node is ready.

Parameters

node
The node that emitted the event.
retries
The number of retries after the node was ready.
payload
The payload of the event.
nodeReconnecting: [    node: NodeStructure,    retriesLeft: number,    delay: number];

Emitted when the node reconnects.

Parameters

node
The node that was reconnected.
retriesLeft
The number of retries left.
delay
The delay before the next retry.
nodeResumed: [    node: NodeStructure,    players: LavalinkPlayer[],    payload: Ready];

Emitted when the node is resumed.

Parameters

node
The node that was resumed.
players
The players that were resumed.
payload
The payload of the event.
playerDestroy: [    player: PlayerStructure,    reason: string];

Emitted when the player is destroyed.

Parameters

player
The player that was destroyed.
reason
The reason for the destroy.
playerError: [    player: PlayerStructure,    error: Error | unknown];

Emitted when the player has an error.

Parameters

player
The player that emitted the event.
error
The error that was emitted.
playerDisconnect: [    player: PlayerStructure];

Emitted when the player is disconnected from the voice channel.

Parameters

player
The player that was disconnected.
playerMove: [    player: PlayerStructure,    oldChannelId: string,    newChannelId: string];

Emitted when the player is moved to a different voice channel.

Parameters

player
The player that was moved.
oldChannelId
The voice channel id the player was moved from.
newChannelId
The voice channel id the player was moved to.