> For the complete documentation index, see [llms.txt](https://dbd-ts.gitbook.io/dbdts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dbd-ts.gitbook.io/dbdts/functions/authoravatar.md).

# $authorAvatar

Returns the avatar URL of the user who ran this command.

### Usage

```php
$authorAvatar or $authorAvatar[size;dynamic]
```

This function has two fields.

| Field   | Description                                                | Type                                                | Required |
| ------- | ---------------------------------------------------------- | --------------------------------------------------- | -------- |
| size    | The size to display this avatar as.                        | String [(ImageSize)](/dbdts/typedefs/imagesizes.md) | No       |
| dynamic | Whether to change the image to a GIF for animated avatars. | Boolean                                             | No       |

### Example

```javascript
bot.commands.add({
    type: "basicCommand",
    name: "avatar",
    code: `$image[$authorAvatar[4096;yes]]`
})
```
