$userAvatar
Returns the avatar (profile picture) URL of the user who was specified.
Usage
$userAvatar[userID;size;dynamic;serverAvatar]
- userID - (Optional) default value:
$authorID
. The ID of a user you want to return avatar URL from. - size - (Optional) default value:
2048
. The size of user avatar to return in pixels. - dynamic - (Optional) default value:
yes
. Can beyes
orno
. If yes, animated avatar URL will be returned (if they have animated). If no, static image will be returned. - serverAvatar - (Optional) default value:
no
. Can beyes
orno
. Discord does have two types of avatars, global and per-server (custom avatar in each server). If no server avatar is set, the global avatar will be used.
Examples
Sending avatar URL
How is the avatar URL displayed when sent with text and without text
Note
You can send the image as an attachment, so no link will be displayed. For this, you can use function $attachment. To display the avatar URL as plain text, either enclose the function in backticks (`$authorAvatar`
) or angle brackets (<$authorAvatar>
).