# Tweet Card

## 🐈‍⬛ Canvafy Design;

<figure><img src="https://1203280867-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQ8KI56rkXEQp2Ao9aeTJ%2Fuploads%2F9ozf8zuiArzsRdmeDj1v%2Ftweet%20(2).png?alt=media&#x26;token=0a9dff2d-9205-430e-b69c-df25175bafa3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1203280867-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQ8KI56rkXEQp2Ao9aeTJ%2Fuploads%2FQhO8Yf1c1F2qoZr326ZA%2Ftweet%20(1).png?alt=media&#x26;token=5f63adb8-ffa3-4642-9fe4-64aca6202fda" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1203280867-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQ8KI56rkXEQp2Ao9aeTJ%2Fuploads%2F2SeGNYGknsO1xHpTneNO%2Ftweet.png?alt=media&#x26;token=1ec754a5-64ec-4947-b81a-628f8c41c51c" alt=""><figcaption></figcaption></figure>

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

## [.setAvatar(imageURL)](#.setavatar-imageurl)

| PARAMETER                                     | TYPE                                       | DESCRIPTION             |
| --------------------------------------------- | ------------------------------------------ | ----------------------- |
| <mark style="color:blue;">**imageURL**</mark> | <mark style="color:red;">**String**</mark> | **Setting User Avatar** |

## [.setComment(comment)](#.settitle-name)

| PARAMETER                                    | TYPE                                       | DESCRIPTION               |
| -------------------------------------------- | ------------------------------------------ | ------------------------- |
| <mark style="color:blue;">**comment**</mark> | <mark style="color:red;">**String**</mark> | **Setting Tweet Comment** |

## [.setUser({displayName,username})](#.setdescription-description)

| PARAMETER                                        | TYPE                                       | DESCRIPTION                   |
| ------------------------------------------------ | ------------------------------------------ | ----------------------------- |
| <mark style="color:blue;">**displayName**</mark> | <mark style="color:red;">**String**</mark> | **Setting User Display Name** |
| <mark style="color:blue;">**username**</mark>    | <mark style="color:red;">**String**</mark> | **Setting User Username**     |

## [.setTheme(theme)](#.setborder-color)

| PARAMETER                                  | TYPE                                       | DESCRIPTION                   |
| ------------------------------------------ | ------------------------------------------ | ----------------------------- |
| <mark style="color:blue;">**theme**</mark> | <mark style="color:red;">**String**</mark> | **"dark", "light" and "dim"** |

## [.se](#.setlevel-level)[tVerified(verified)](#.setavatarborder-color)

| PARAMETER                                     | TYPE                                           | DESCRIPTION       |
| --------------------------------------------- | ---------------------------------------------- | ----------------- |
| <mark style="color:blue;">**verified**</mark> | <mark style="color:orange;">**Boolean**</mark> | **Verified Tick** |

## [.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.startsWith(".tweet")){
  const tweet = await new canvafy.Tweet()
  .setTheme("dim")
  .setUser({displayName: "Beş", username: "fivesobes"})
  .setVerified(true)
  .setComment("This is a tweet card. You can customize it as you wish. Enjoy! #Canvafy")
  .setAvatar("https://cdn.discordapp.com/avatars/928259219038302258/299ebac2bc13f5a8f44d2dd1f0c9f856.png?size=1024")
  .build();

  message.reply({
    files: [{
      attachment: tweet,
      name: `tweet-${message.author.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/tweet-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.
