You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

JSONEncodable

export declare interface JSONEncodable<T>
export declare interface JSONEncodable<T>
Represents an object capable of representing itself as a JSON object
NameConstraintsOptionalDefaultDescription
TNoThe JSON type corresponding to toJSON outputs.
toJSON():T
Transforms this object to its JSON format