---
description: Tweet Card Builder
---

# 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)
