Entity Info
userAvatar
$userAvatar
The function $userAvatar[] returns the global avatar URL of the given user.
Syntax
$userAvatar[userID]
Parameters
| Parameter | Description |
|---|---|
userID |
Required - The ID of the user. An invalid ID, or an unknown user, raises an error. |
Return Value
- Type: String (URL)
- The avatar URL of the user (
avatar.urlof the Discord user).
Behavior
$userAvatarrequires one argument: used without argument it is invalid. For the author of the command, use$authorAvatar(no argument).- The avatar is the global image of the user, not the server-specific one (see
$userServerAvatar).
Examples
Display Avatar in Large
$title[Avatar of $userName]
$image[$authorAvatar]
$color[#5865F2]
$sendMessage[Avatar]
Display Avatar as Thumbnail in a Profile
$author[$userName;$authorAvatar]
$title[User Profile]
$thumbnail[$authorAvatar]
$description[
**Name:** $userName
**ID:** $userID
]
$color[#5865F2]
$sendMessage[Profile]
Notes
- For the server-specific avatar (if set), use
$userServerAvatar. - For the avatar of the command author without argument, use
$authorAvatar.
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.