Skip to main content
Version: v2.10.2 (current)

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 either encoded or identifier, not both.

Property Type Description Optional
encodedstring | nullBase64-encoded Lavalink track string. Pass null to stop playback.
identifierstring | nullTrack identifier (e.g. YouTube video ID). Alternative to encoded.
userDataobjectArbitrary user data attached to the track (e.g. requester information).