Embed & Message footerIcon

$footerIcon[]

Modifies the footer icon of an embed after it has been defined with $footer[]. Allows changing only the image without modifying the text.

Syntax
$footerIcon[url;(embedIndex)]

$footerIcon[]

The $footerIcon[] function allows you to modify only the icon of a footer already defined with $footer[]. It is useful when you want to define a dynamic icon without repeating the footer text.

Syntax

$footerIcon[url;(embedIndex)]

Parameters

Parameter Description
url URL of the image to use as the footer’s icon.
embedIndex Optional. Index of the target embed (Default: 1).

Return Value

Modifies the response currently being constructed. Returns nothing.

When to use $footerIcon[]

  • You have already defined the footer with $footer[text] and want to add or change the icon.
  • The icon depends on a dynamic variable (avatar, status, etc.).
  • You want to separate the logic of the text and the icon for better readability.

Examples

Dynamic icon based on the user

$title[Profile]
$description[
**Name:** $username
**Tag:** $discriminator
]
$footer[Requested by $username]
$footerIcon[$authorAvatar]
$color[#5865F2]
$sendMessage[]

Conditional icon

$title[Server Status]
$description[The server is operational.]
$footer[Last check: $time]
$if[$var[status]==online]
  $footerIcon[https://cdn.example.com/green.png]
$else
  $footerIcon[https://cdn.example.com/red.png]
$endif
$color[#57F287]
$sendMessage[]

Notes

  • $footerIcon[] must be called after $footer[], otherwise there is no footer to apply the icon to.
  • If $footerIcon[] is called before $footer[], the icon will be ignored.
  • The URL must point to a publicly accessible image.