Skip to content

Upgrading to v3

Duncan Sterken edited this page Mar 17, 2024 · 2 revisions

Deprecated methods

All deprecated methods have been removed. The easiest way to fix this is to move to the new methods before upgrading to v3.

Player events

The classes

  • ClientEvent
  • ReadyEvent
  • PlayerUpdateEvent
  • StatsEvent
  • EmittedEvent
  • TrackStartEvent
  • TrackEndEvent
  • TrackExceptionEvent
  • TrackStuckEvent
  • WebSocketClosedEvent

Have been moved to the dev.arbjerg.lavalink.client.event package

These classes have been stripped of their type parameter since it was not needed anymore.

Protocol and player

The dev.arbjerg.lavalink.client.protocol package has been renamed to dev.arbjerg.lavalink.client.player

The classes IUpdatablePlayer, PlayerUpdateBuilder, and LavalinkPlayer have been moved to the dev.arbjerg.lavalink.client.player package.

Load balancer

ILoadBalancer#selectNode has a new argument added for the guild id to allow node filtering based on guilds.

Clone this wiki locally