Implemented support for Lavalink resuming
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
andtimeout
properties toLavalinkConfiguration
. - 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.