Custom Command
FunctionsMember Functions

$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

Member
9/5/2026
!!exec With text: $userAvatar
Custom Command
APP
9/5/2026
Member
9/5/2026
!!exec $userAvatar
Custom Command
APP
9/5/2026
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>).

Related Functions: $attachment

Function difficulty: Easy

Tags: Image Avatar Attachment profile picture

On this page