Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LavalinkManagerEvents

Index

Properties

NODE_CONNECTED

NODE_CONNECTED: Node

Emitted when a node connects to it's lavalink server.

NODE_CREATED

NODE_CREATED: Node

Emitted when a node is created.

NODE_DESTROYED

NODE_DESTROYED: { node: Node; reason: string }

Emitted when a node is destroyed.

Type declaration

  • node: Node
  • reason: string

NODE_DISCONNECTED

NODE_DISCONNECTED: { code: number; node: Node; reason: string }

Emitted when a node disconnects from it's lavalink server.

Type declaration

  • code: number
  • node: Node
  • reason: string

NODE_ERROR

NODE_ERROR: { error: Error; node: Node }

Emitted when a node encounters an error.

Type declaration

  • error: Error
  • node: Node

NODE_RAW

NODE_RAW: { node: Node; payload: any }

Emitted when a node receives a payload from it's server.

Type declaration

  • node: Node
  • payload: any

NODE_RECONNECTING

NODE_RECONNECTING: Node

Emitted when a node is attempting to reconnect.

PLAYER_CONNECTED

PLAYER_CONNECTED: Player

Emitted when a player connects to a VC.

PLAYER_CREATED

PLAYER_CREATED: Player

Emitted when a player is created.

PLAYER_DESTROYED

PLAYER_DESTROYED: { player: Player; reason: string }

Emitted when a player is destroyed.

Type declaration

  • player: Player
  • reason: string

PLAYER_ERROR

PLAYER_ERROR: { error: Error; player: Player }

Emitted when a player encounters an error.

Type declaration

PLAYER_MOVED

PLAYER_MOVED: { newChannel: null | string; oldChannel: null | string; player: Player }

Emitted when a player manually moved. This includes the bot joining or leaving a VC. The player is also automatically paused or destroyed when this event is emitted.

Type declaration

  • newChannel: null | string
  • oldChannel: null | string
  • player: Player

PLAYER_PAUSED

PLAYER_PAUSED: { player: Player; reason: string }

Emitted when a player is paused.

Type declaration

  • player: Player
  • reason: string

PLAYER_RESUMED

PLAYER_RESUMED: { player: Player; reason: string }

Emitted when a player is resumed.

Type declaration

  • player: Player
  • reason: string

PLAYER_TRACK_END

PLAYER_TRACK_END: { player: Player; reason: string; track: null | Track }

Emitted when the server sends a track end event.

Type declaration

PLAYER_TRACK_EXCEPTION

PLAYER_TRACK_EXCEPTION: { cause: string; message: string; player: Player; severity: string; track: null | Track }

Emitted when the server sends a track exception event.

Type declaration

  • cause: string
  • message: string
  • player: Player
  • severity: string
  • track: null | Track

PLAYER_TRACK_START

PLAYER_TRACK_START: { player: Player; track: null | Track }

Emitted when the server sends a track start event.

Type declaration

PLAYER_TRACK_STUCK

PLAYER_TRACK_STUCK: { player: Player; thresholdMs: number; track: null | Track }

Emitted when the server sends a track stuck event.

Type declaration

  • player: Player
  • thresholdMs: number
  • track: null | Track

SPOTIFY_AUTHORIZED

SPOTIFY_AUTHORIZED: { expiresIn: number; token: string }

Emitted when the lavalink manager authorizes with spotify, or renews it's spotify token.

Type declaration

  • expiresIn: number
  • token: string

SPOTIFY_AUTH_ERROR

SPOTIFY_AUTH_ERROR: Error

Emitted when there is an error authorizing with spotify.

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method

Generated using TypeDoc