$userAvatar

Returns the avatar (profile picture) URL of the user who was specified.

Usage

$userAvatar[userID;size;dynamic;serverAvatar]
  1. userID - (Optional) default value: $authorID. The ID of a user you want to return avatar URL from.
  2. size - (Optional) default value: 2048. The size of user avatar to return in pixels.
  3. dynamic - (Optional) default value: yes. Can be yes or no. If yes, animated avatar URL will be returned (if they have animated). If no, static image will be returned.
  4. serverAvatar - (Optional) default value: no. Can be yes or no. 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

User04/23/2025
!!exec With text: $userAvatar
Custom Command Bot 04/23/2025
With text: https://cdn.discordapp.com/embed/avatars/0.png
User Avatar
User04/23/2025
!!exec $userAvatar
Custom Command Bot 04/23/2025
User Avatar

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>).

Function difficulty: Easy
Tags: Image Avatar Attachment profile picture