encode
Encode a versioned serialized entity as Base64 JSON.
You are reading the v8 docsDev
FunctionTypeScript@discord-player/plugin-host
View sourcepackages/plugin-host/src/utils/serde.ts:97function encode(value: SerializedEntityUnion): stringEncode a versioned serialized entity as Base64 JSON.
Parameters
| Name | Type | Description |
|---|---|---|
| value | SerializedEntityUnion | Versioned Track or Playlist payload. |
Returns
string
UTF-8 JSON encoded as Base64.
deserializeSourceResult
Reconstruct source-host metadata in a consumer process without restoring private extractor objects. The normal Track retains the transient hint without requiring a second representation.
normalizeLyrics
Normalize and validate a lyrics record once, including sorted synchronized timestamps.