Skip to content

Implemented support for Lavalink resuming

Mateusz Brawański requested to merge github/fork/Neuheit/lavalinkResume into master

Created by: Neuheit

Summary

Implemented lavalink resuming as described here.

Details

As mentioned in Lavalink, this will allow the resuming of sessions after a client is disconnected. The user can specify the key and timeout in the lavalink configuration, and I made the op send when the client first connects as well specify the key in the initial handshake headers.

Changes proposed

  • Added key and timeout properties to LavalinkConfiguration.
  • Added Resume-Key as an additional header sent when connecting.
  • Added and changed a couple internal payload classes to better support it (since this op does not take a guild id).
  • Made a couple grammar corrections as well as give more detail for other configuration properties.

Merge request reports

Loading