Functionalities
Other
$userAvatar
Returns the avatar image of a user.
FUNCTION USAGE
  • $userAvatar
  • $userAvatar[]
  • $userAvatar[userID]
  • $userAvatar[userID;size]
  • $userAvatar[userID;size;format]

Properties:

[] - Leave brackets empty to return the command authors avatar. Same as no brackets and $authorAvatar for diversity. userID - The ID of the user to return the avatar image of. size - The size of the returned image. Follow the table below. May be optional. format - The image format. Follow the table below. May be optional.
No brackets will return the avatar of the command author. Same as $authorAvatar for diversity.
Format
Size
One of webp, png, jpg, jpeg, gif. If no format is provided, defaults to webpIf true, the format will dynamically change to gif for animated avatars; the default is false.
One of 16, 32, 64, 128, 256, 512, 1024, 2048, 4096

Your avatar image will show in the response. It will show as the format in the 2nd field. 1st field is to resize the image

Example 1:

1
bot.Command({
2
name: "avatar",
3
code: `
4
$userAvatar[$mentioned[1];webp;1024]
5
`})
Copied!

Example 2:

1
bot.Command({
2
name: "avatar",
3
code: `
4
$userAvatar[$mentioned[1]]
5
`})
Copied!

Example 3:

1
bot.Command({
2
name: "avatar",
3
code: `
4
$userAvatar
5
`})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: