Interface: SerializedPlayerState
Represents the full serialized state of a
Player, written to and read from the configured state storage backend (Memory, Redis, or JSON).
Used internally byPlayerUtils.serializePlayer()andManager.loadPlayerStates()to persist and restore players across restarts.
SerializedPlayerState
Property Type Description Optional clusterIdnumber The cluster ID of the manager instance that owned this player. guildIdstring The guild ID this player belongs to. voiceChannelIdstring | null The voice channel ID, or nullif not connected.textChannelIdstring | null The text channel ID, or nullif unset.volumenumber The player's volume level at time of serialization. positionnumber The playback position in milliseconds at time of serialization. pausedboolean Whether the player was paused. playingboolean Whether the player was actively playing. trackRepeatboolean Whether track repeat was enabled. queueRepeatboolean Whether queue repeat was enabled. dynamicRepeatboolean Whether dynamic repeat was enabled. isAutoplayboolean Whether autoplay was enabled. autoplayTriesnumber The number of autoplay retry attempts at time of serialization. dynamicLoopIntervalnumber The dynamic loop interval in milliseconds, if set. voiceStateVoiceStateThe voice state at time of serialization. optionsPlayerOptionsThe player options used to create the player. nodeSerializedNode| nullThe node the player was connected to, or nullif no node was assigned.queueSerializedQueueThe serialized queue state. filtersSerializedFilters| nullThe active filter state, or nullif no filters were applied.dataSerializedDataOptional developer-defined data attached to the player, including client user and now-playing message.
SerializedNode
The node the player was connected to at time of serialization.
Property Type Description Optional sessionIdstring The Lavalink session ID for this node connection. options.identifierstring The identifier of the node.
SerializedQueue
The serialized queue state at time of serialization.
Property Type Description Optional currentTrack| nullThe track currently playing, or nullif none.tracksTrack[]The upcoming tracks in the queue. previousArray< Track| null>Previously played tracks.
SerializedFilters
The active filter state at time of serialization.
Property Type Description Optional bassBoostlevelnumber | null The bass boost level, or nullif not set.equalizerEqualizerBand[]The equalizer band configuration. distortionDistortionOptionsThe distortion filter settings. karaokeKaraokeOptionsThe karaoke filter settings. timescaleTimescaleOptionsThe timescale filter settings. vibratoVibratoOptionsThe vibrato filter settings. rotationRotationOptionsThe rotation filter settings. reverbReverbOptionsThe reverb filter settings. volumenumber The filter volume level. filterStatusRecord<string, boolean> A map of filter names to their enabled state.
SerializedData
Optional developer-defined data persisted with the player.
Property Type Description Optional clientUserAnyUserThe bot's own user object at time of serialization. nowPlayingMessageNowPlayingMessage| nullA minimal reference to the now-playing message, or nullif none....unknown Any additional developer-defined keys.
NowPlayingMessage
A minimal serializable reference to a now-playing message.
Property Type Description Optional idstring The message ID. channelIdstring The channel ID the message was sent in. guildIdstring The guild ID the message belongs to.