$authorAvatar
Returns the URL to the User's avatar that triggered the command.
Discord adds image to message if link provided Read examples section
If a message contains only a link to an image, Discord sends only the image.
If a message has a link to an image AND some text, Discord sends both the link and the image.
To add image without posting the link use $attachment
To send link as a plain text wrap the function into graves like`$authorAvatar`
Usage
$authorAvatar[Return Server Avatar Instead (yes/no, default is no)]
1
Examples
Message contains text and link to image
crochet03/05/2025
!!exec My avatar link: $authorAvatar
Image attached below:
Message contains only link to image
Example
crochet03/05/2025
!!exec $authorAvatar
Custom Command Bot 03/05/2025
1 Send text and image without link
Example
crochet03/05/2025
!!exec No link, only text and image
$attachment[$authorAvatar]
Custom Command Bot 03/05/2025
No link, only text and image
1 Send link as plain text
Example
crochet03/05/2025
!!exec
$authorAvatar
Custom Command Bot 03/05/2025
https://cdn.discordapp.com/avatars/808007806266769458/768de61c5d90024e100ec5c058d3c2fe.webp?size=4096