🎶Spotify
Classes
Creador de tarjetas de presencia de Spotify
Typedefs
SpotifyDataBG : object
SpotifyProgressBarData : object
Spotify
Creador de tarjetas de presencia de Spotify
Kind: global class
new Spotify()
Crea una tarjeta de presencia de Spotify
Example
spotify.title : string
string
Título de la canción
Kind: instance property of Spotify
\
spotify.image : string
| Buffer
| Canvas.Image
string
| Buffer
| Canvas.Image
Thumbnail
Kind: instance property of Spotify
\
spotify.artist : string
string
Artista de la canción
Kind: instance property of Spotify
\
spotify.album : string
string
Nombre del álbum de Spotify
Kind: instance property of Spotify
\
spotify.start : number
number
Marca de tiempo de inicio de presencia de discord
Kind: instance property of Spotify
\
spotify.end : number
number
Marca de tiempo de finalización de presencia de discord
Kind: instance property of Spotify
\
spotify.background : SpotifyDataBG
SpotifyDataBG
Fondo
Kind: instance property of Spotify
\
spotify.progressBar : SpotifyProgressBarData
SpotifyProgressBarData
Detalles de la barra de progreso
Kind: instance property of Spotify
\
spotify.setProgressBar(type, color) ⇒ Spotify
Spotify
Establecer detalles de la barra de progreso
Kind: instance method of Spotify
Param | Type | Description |
---|---|---|
type |
| Tipo de barra de progreso |
color |
| Color para establecer |
spotify.setTitle(title) ⇒ Spotify
Spotify
Establecer título
Kind: instance method of Spotify
Param | Type | Description |
---|---|---|
title |
| Título para establecer |
spotify.setImage(source) ⇒ Spotify
Spotify
Establecer imagen
Kind: instance method of Spotify
Param | Type | Description |
---|---|---|
source |
| Fuente de imagen |
spotify.setAuthor(name) ⇒ Spotify
Spotify
Establecer nombre de artista
Kind: instance method of Spotify
Param | Type | Description |
---|---|---|
name |
| Nombre del artista |
spotify.setAlbum(name) ⇒ Spotify
Spotify
Establecer el nombre del álbum
Kind: instance method of Spotify
Param | Type | Description |
---|---|---|
name |
| Nombre del álbum |
spotify.setStartTimestamp(time) ⇒ Spotify
Spotify
Establecer marca de tiempo de inicio
Kind: instance method of Spotify
Param | Type | Description |
---|---|---|
time |
| Marca de tiempo |
spotify.setEndTimestamp(time) ⇒ Spotify
Spotify
Establecer marca de tiempo de finalización
Kind: instance method of Spotify
Param | Type | Description |
---|---|---|
time |
| Marca de tiempo |
spotify.setBackground(type, data) ⇒ Spotify
Spotify
Definir fondo
Kind: instance method of Spotify
Param | Type | Default | Description |
---|---|---|---|
type |
|
| Tipo de fondo |
data |
|
| Datos de fondo |
spotify.build(ops) ⇒ Promise.<Buffer>
Promise.<Buffer>
Esta función convierte los datos sin procesar en una tarjeta de presencia de Spotify.
Kind: instance method of Spotify
Param | Type | Default | Description |
---|---|---|---|
ops |
| Fuentes | |
[ops.fontX] |
|
| Familia tipográfica Bold |
[ops.fontY] |
|
| Familia tipográfica regular |
SpotifyDataBG : object
object
Kind: global typedef Properties
Name | Type | Description |
---|---|---|
type |
| Tipo de fondo |
data |
| Datos de fondo |
SpotifyProgressBarData : object
object
Kind: global typedef Properties
Name | Type | Description |
---|---|---|
bgColor |
| Barra de progreso bg color |
color |
| Barra de progreso bg color |
Last updated