Spotify
setProgressBar(type, color) โ Spotify
Set progress bar details
setTitle(title) โ Spotify
Set title
setImage(source) โ Spotify
Establecer imagen
setAuthor(name) โ Spotify
Set the name of the artist
setAlbum(name) โ Spotify
Set the name of the album
setStartTimestamp(time) โ Spotify
Set start timestamp
setEndTimestamp(time) โ Spotify
Set end timestamp
setBackground(type, data) โ Spotify
Set background image/color of the card
build([font]) โ Promise.<Buffer>
Build the Spotify presence card
Kind: global class
Spotify card creator
PREVIEW
Example
setProgressBar(type, color) โ
Spotify
Set progress bar details
Kind: global function
Returns: Spotify - The current instance of Spotify
Throws:
APIError Invalid progress bar type
Color of the progress bar
Set title
Kind: global function
Returns: Spotify - The current instance of Spotify
Throws:
APIError Title expected but not received
Establecer imagen
Kind: global function
Returns: Spotify - The current instance of Spotify
Throws:
APIError Image source expected but not received
string | Buffer | Canvas.Image
Set the name of the artist
Kind: global function
Returns: Spotify - The current instance of Spotify
Throws:
APIError Artist name expected but not received
Set the name of the album
Kind: global function
Returns: Spotify - The current instance of Spotify
Throws:
APIError Album name expected but not received
Set start timestamp
Kind: global function
Returns: Spotify - The current instance of Spotify
Throws:
APIError Timestamp expected but not received
Set end timestamp
Kind: global function
Returns: Spotify - The current instance of Spotify
Throws:
APIError Timestamp expected but not received
setBackground(type, data) โ
Spotify
Set background image/color of the card
Kind: global function
Returns: Spotify - The current instance of Spotify
Throws:
APIError Missing background data
string | Buffer | Canvas.Image
Image URL or HTML color code
build([font]) โ Promise.<Buffer>
Build the Spotify presence card
Kind: global function
Returns: Promise.<Buffer> - Card image in buffer format
Throws:
APIError Missing of options
Param
Type
Default
Description