Interface: RestPlayOptions
Defines the payload for starting or controlling playback through Lavalink's REST endpoint.
Supports specifying the track, playback settings, filters, and voice connection parameters.
RestPlayOptions
Main structure containing playback options for a specific guild.
Property Type Description Optional guildIdstringThe ID of the guild where playback is controlled. noReplacebooleanIf true, prevents replacing the currently playing track when a new play payload is sent.dataRestPlayDataPlayback details and parameters.
RestPlayData
Playback details for a specific track and player state.
Property Type Description Optional trackRestPlayTrackThe track to play. positionnumberCurrent playback position in milliseconds. endTimenumberPlayback end position in milliseconds. volumenumberPlayback volume level (0–1000). pausedbooleanWhether the player should be paused. filtersobjectAudio filters to apply. voiceLavalinkVoiceStateUpdateVoice connection payload sent to the Lavalink node.
RestPlayTrack
Track specifier nested inside
RestPlayData. Provide eitherencodedoridentifier, not both.
Property Type Description Optional encodedstring|nullBase64-encoded Lavalink track string. Pass nullto stop playback.identifierstring|nullTrack identifier (e.g. YouTube video ID). Alternative to encoded.userDataobjectArbitrary user data attached to the track (e.g. requester information).