Discord Player

Serializable

Structural contract implemented by models that can produce a persistence payload.

You are reading the v8 docsDev
InterfaceTypeScript@discord-player/plugin-host
View sourcepackages/plugin-host/src/utils/serialization.ts:32
interface Serializable<T extends SerializedEntity<string, JSONValue>>

Structural contract implemented by models that can produce a persistence payload.

Methods

serialize

serialize(): T

Convert this model to a versioned JSON-compatible persistence payload.

Returns

T

On this page