# $thumbnail[]

The function `$thumbnail[]` sets the **thumbnail** of a Discord embed. The thumbnail is a small square image displayed at the top right corner of the embed.

## Syntax

```
$thumbnail[url;(embedIndex)]
```

## Parameters

| Parameter | Description |
|---|---|
| `url` | URL of the image to use as the thumbnail. Must be a direct URL to an image file. |
| `embedIndex` | Optional. Index of the targeted embed, from 1 to 10 (1 by default, also when empty). Any other value is an error. |

## Return Value

Modifies the response currently being constructed. Returns nothing.

## Behavior

- The thumbnail appears at the top right of the embed.
- The image is automatically resized into a small square.
- Only one thumbnail is allowed per embed; the last call overwrites the previous one.

## Difference Between $thumbnail[] and $image[]

| Function | Position | Size |
|---|---|---|
| `$thumbnail[]` | Top right | Small (square, ~80x80px) |
| `$image[]` | Bottom of the embed | Large, full width |

## Examples

### Thumbnail with User Avatar

```bdfd
$title[Profile of $username]
$description[
**Username:** $username
**ID:** $authorID
**Account Created:** $creationDate[$authorID]
]
$thumbnail[$authorAvatar]
$color[#5865F2]
```

### Thumbnail with Server Icon

```bdfd
$title[Welcome to $serverName]
$description[
Welcome to the server **$serverName**!
We are now **$membersCount** members!
]
$thumbnail[$serverIcon]
$color[#57F287]
```

### Combining Thumbnail and Image

```bdfd
$title[New Update]
$description[
**Version 2.0** is now available!

- Bug fixes
- New features
- Performance improvements
]
$thumbnail[https://cdn.example.com/update-icon.png]
$image[https://cdn.example.com/update-banner.png]
$footer[Published on $day $month $year]
$color[#FEE75C]
```

## Notes

- The URL must be publicly accessible.
- Supported formats: PNG, JPEG, GIF, WebP.
- The thumbnail is ideal for displaying an avatar, a logo, or a representative icon.
- For a large full-width image, use `$image[]`.

