Interface: RestPlayOptions
Defines the payload for starting or controlling playback through Lavalink's REST endpoint.
Supports specifying the track (by encoded string or identifier), playback settings, filters, and voice connection parameters.
RestPlayOptions
Main structure containing playback options for a specific guild.
Property Type Description Optional guildIdstring The ID of the guild where playback is controlled. dataRestPlayDataPlayback details and parameters.
RestPlayData
Playback details for a specific track and player state.
Property Type Description Optional encodedTrackstring Base64-encoded track string. Alternative to identifier.identifierstring Track identifier (e.g. YouTube video ID). Alternative to encodedTrack.startTimenumber Playback start position in milliseconds. endTimenumber Playback end position in milliseconds. volumenumber Playback volume level (0–1000). positionnumber Current playback position in milliseconds. pausedboolean Whether the player should be paused. filtersobject Audio filters to apply. voiceLavalinkVoiceStateUpdateVoice connection payload sent to the Lavalink node. noReplaceboolean If true, prevents replacing the currently playing track when a new play payload is sent.