# Spotify Card

## 🐈‍⬛ Canvafy Design;

<figure><img src="/files/YXcluGTHuaOSAckfTOjo" alt=""><figcaption></figcaption></figure>

```javascript
await new canvafy.Spotify()
```

## [.setAuthor(author)](#.setauthor-author)

| PARAMETER                                   | TYPE                                       | DESCRIPTION               |
| ------------------------------------------- | ------------------------------------------ | ------------------------- |
| <mark style="color:blue;">**author**</mark> | <mark style="color:red;">**String**</mark> | **Setting Musician Name** |

## [.setAlbum(name)](#.setalbum-name)

| PARAMETER                                 | TYPE                                       | DESCRIPTION                                                                                                                                      |
| ----------------------------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| <mark style="color:blue;">**name**</mark> | <mark style="color:red;">**String**</mark> | <p><strong>Setting Album Name</strong><br><mark style="background-color:purple;"><strong>(</strong>Preferred Option<strong>)</strong></mark></p> |

## [.setImage(image)](#.setimage-image)

| PARAMETER                                  | TYPE                                       | DESCRIPTION                     |
| ------------------------------------------ | ------------------------------------------ | ------------------------------- |
| <mark style="color:blue;">**image**</mark> | <mark style="color:red;">**String**</mark> | **Setting Song Or Album Image** |

## [.setTimestamp(current,max)](#.setdescription-description)

| PARAMETER                                    | TYPE                                          | DESCRIPTION              |
| -------------------------------------------- | --------------------------------------------- | ------------------------ |
| <mark style="color:blue;">**current**</mark> | <mark style="color:yellow;">**Number**</mark> | **Current Time In "ms"** |
| <mark style="color:blue;">**max**</mark>     | <mark style="color:yellow;">**Number**</mark> | **All Time In "ms"**     |

## [.setTitle(title)](#.settitle-title)

| PARAMETER                                  | TYPE                                       | DESCRIPTION           |
| ------------------------------------------ | ------------------------------------------ | --------------------- |
| <mark style="color:blue;">**title**</mark> | <mark style="color:red;">**String**</mark> | **Setting Song Name** |

## [.setSpotifyLogo(bool)](#.setbarcolor-color)

| PARAMETER                                 | TYPE                                          | DESCRIPTION                                                                                                                                                                                                                                                                                   |
| ----------------------------------------- | --------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:blue;">**bool**</mark> | <mark style="color:green;">**Boolean**</mark> | <p><strong>Setting Spotify Logo</strong><br><mark style="color:green;"><strong>Default =></strong></mark><strong> </strong><mark style="color:yellow;"><strong>true</strong></mark><br><mark style="background-color:purple;"><strong>(</strong>Preferred Option<strong>)</strong></mark></p> |

## [.setBlur(blur)](#.setbarbackgroundcolor-color)

| PARAMETER                                 | TYPE                                          | DESCRIPTION                                                                                                                                                                                                                                                                                                                                                        |
| ----------------------------------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <mark style="color:blue;">**blur**</mark> | <mark style="color:yellow;">**Number**</mark> | <p><strong>Setting setImage Blur Effect px</strong><br><mark style="color:green;"><strong>Default => 3</strong></mark><strong> </strong><mark style="color:purple;"><strong>/</strong></mark> <mark style="color:red;"><strong>Max => 15</strong></mark><br><mark style="background-color:purple;"><strong>(</strong>Preferred Option<strong>)</strong></mark></p> |

## [.setBorder(color)](#.setforegroundcolor-color)

| PARAMETER                                  | TYPE                                       | DESCRIPTION                                                                                                                                         |
| ------------------------------------------ | ------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:blue;">**color**</mark> | <mark style="color:red;">**String**</mark> | <p><strong>"hexColor" adjustment</strong><br><mark style="background-color:purple;"><strong>(</strong>Preferred Option<strong>)</strong></mark></p> |

## [.setOverlayOpacity(opac)](#.setforegroundopacity-opac)

| PARAMETER                                 | TYPE                                                   | DESCRIPTION                                                                                                                                           |
| ----------------------------------------- | ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:blue;">**opac**</mark> | <mark style="color:yellow;">**Number / Double**</mark> | <p><strong>Setting Overlay Opacity</strong><br><mark style="background-color:purple;"><strong>(</strong>Preferred Option<strong>)</strong></mark></p> |

## [.build()](#.build)

| PARAMETER                                       | TYPE                                            | DESCRIPTION                                                                                                            |
| ----------------------------------------------- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| ~~<mark style="color:purple;">**None**</mark>~~ | ~~<mark style="color:purple;">**None**</mark>~~ | <p><strong>Image Maker.</strong><br><em><mark style="color:orange;"><strong>❗Required to Use!</strong></mark></em></p> |

### **🌙 Example Of Code With Discord.js v14** <a href="#usage" id="usage"></a>

```javascript
client.on("messageCreate", async message => {
  if (message.content === "!spotify") {
    const spotify = await new canvafy.Spotify()
    .setAuthor("Sagopa Kajmer, Şehinşah")
    .setAlbum("Kağıt Kesikleri")
    .setTimestamp(121000,263400)
    .setImage("https://i.scdn.co/image/ab67616d00001e02621fe38a73b2a45e9be957d3")
    .setTitle("Bla Bla Bla Bla")
    .setBlur(5)
    .setOverlayOpacity(0.7)
    .build();


    message.reply({
      files: [{
        attachment: spotify,
        name: `spotify-${message.member.id}.png`
      }]
    });
  }
});

```

## 📃Support Server; [discord.gg/luppux](https://discord.gg/luppux)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fivesobes.gitbook.io/canvafy/spotify-card.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
