PluginInfo
Plugin Info is an object, provided by LAVALINK PLUGINS and the CLIENT mixed
What are Lavalink Plugins, which exist and how do they work? Check out those reference informations: https://github.com/lavalink-devs/Lavalink/blob/master/PLUGINS.md
The PluginInfo is only filled out when you use a lavalink plugin, like lavasrc, lavasearch, ...
If you want you can override pluginInfo.clientData if you want to have some custom track informations!
Overview
Parameter
Type
Description
Of Which Plugin
clientData
{ [key:string]: any }
Custom Client Data
custom
Note that it can always have more data then the interface, if a plugin returns that.
Interface
export interface PluginInfo {
/** The Type provided by a plugin */
type?: "album" | "playlist" | "artist" | "recommendations" | string;
/** The Identifier provided by a plugin */
albumName?: string;
/** The url of the album art */
albumArtUrl?: string;
/** The url of the artist */
artistUrl?: string;
/** The url of the artist artwork */
artistArtworkUrl?: string;
/** The url of the preview */
previewUrl?: string;
/** Whether the track is a preview */
isPreview?: boolean;
/** The total number of tracks in the playlist */
totalTracks?: number;
/** The Identifier provided by a plugin */
identifier?: string;
/** The ArtworkUrl provided by a plugin */
artworkUrl?: string;
/** The Author Information provided by a plugin */
author?: string;
/** The Url provided by a Plugin */
url?: string,
/** The Url provided by a Plugin */
uri?: string,
/** You can put specific track information here, to transform the tracks... */
clientData?: { [key:string] : any },
}
clientData is optional, and can be declared by you manually afterwards savly, without messing things up (if you want)
Last updated