Functionalities
Other
Powered By GitBook
$authorAvatar
Returns the command authors avatar with optional dynamics.

FUNCTION USAGE

    $authorAvatar
    $authorAvatar[size]
    $authorAvatar[size;format]
Format
Size
One of webp, png, jpg, jpeg, gif. If no format is provided, defaults to png
One of 16, 32, 64, 128, 256, 512, 1024, 2048, 4096

Your avatar image will show in the response. it will show as the format in the 2nd field. 1st field is to resize the image

Example 1: Will auto convert to gif if it's a gif avatar.

1
bot.Command({
2
name: "myavatar",
3
code: `
4
$authorAvatar
5
`})
Copied!

Example 2: Will auto convert to gif if it's a gif avatar. otherwise, the image stays webp format.

1
bot.Command({
2
name: "myavatar",
3
code: `
4
$authorAvatar[1024;webp]
5
`})
Copied!
Last modified 4mo ago
Copy link