# Security Card

## 🐈‍⬛ Canvafy Design;

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

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

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

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

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

## [.setBackground(type,source)](#.setbackground-image-imageurl)

| PARAMETER                                   | TYPE                                       | DESCRIPTION                             |
| ------------------------------------------- | ------------------------------------------ | --------------------------------------- |
| <mark style="color:blue;">**type**</mark>   | <mark style="color:red;">**String**</mark> | **"image" or "color" adjustment**       |
| <mark style="color:blue;">**source**</mark> | <mark style="color:red;">**String**</mark> | **"imageURL" or "hexColor" adjustment** |

## [.setLocale(locale)](#.settitle-name)

| PARAMETER                                   | TYPE                                       | DESCRIPTION                                                                                                                                                                                                                                       |
| ------------------------------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:blue;">**locale**</mark> | <mark style="color:red;">**String**</mark> | <p><strong>Country Short Code</strong><br><mark style="background-color:purple;"><strong>(Example; "en","fr","tr" etc.)</strong></mark><br><mark style="background-color:purple;"><strong>(</strong>Preferred Option<strong>)</strong></mark></p> |

## [.setCreatedTimestamp(date)](#.setcreatedtimestamp-date)

| PARAMETER                                 | TYPE                                          | DESCRIPTION                       |
| ----------------------------------------- | --------------------------------------------- | --------------------------------- |
| <mark style="color:blue;">**date**</mark> | <mark style="color:yellow;">**Number**</mark> | **Someone User CreatedTimestamp** |

## [.setSuspectTimestamp(date)](#.setsuspecttimestamp-date)

| PARAMETER                                 | TYPE                                          | DESCRIPTION                                 |
| ----------------------------------------- | --------------------------------------------- | ------------------------------------------- |
| <mark style="color:blue;">**date**</mark> | <mark style="color:yellow;">**Number**</mark> | **Period of Time to be Considered Suspect** |

## [.setBorder(color)](#.setborder-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> |

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

| PARAMETER                                  | TYPE                                       | DESCRIPTION               |
| ------------------------------------------ | ------------------------------------------ | ------------------------- |
| <mark style="color:blue;">**color**</mark> | <mark style="color:red;">**String**</mark> | **"hexColor" adjustment** |

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

| PARAMETER                                 | TYPE                                                   | DESCRIPTION             |
| ----------------------------------------- | ------------------------------------------------------ | ----------------------- |
| <mark style="color:blue;">**opac**</mark> | <mark style="color:yellow;">**Number / Double**</mark> | **Transparent Opacity** |

## [.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('guildMemberAdd', async member => {
  const security = await new canvafy.Security()
    .setAvatar(member.user.displayAvatarURL({extension:"png",forceStatic:true}))
    .setBackground("image", "https://cdn.discordapp.com/attachments/1087030211813593190/1110243947311288530/beeautiful-sunset-illustration-1212023.webp")
    .setCreatedTimestamp(member.user.createdTimestamp)
    .setSuspectTimestamp(604800000) // 1 week millisecond
    .setBorder("#f0f0f0")
    .setLocale("en") // country short code - default "en"
    .setAvatarBorder("#f0f0f0")
    .setOverlayOpacity(0.9)
    .build();

  member.guild.channels.cache.get("<channelId>").send({
    content: `Welcome ${member}!`,
    files: [{
      attachment: security,
      name: `security-${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/security-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.
