v5.0.0
$author
Sets the author in an embed message and authorIcon if it's specified.
This function allows you to add an 'author' to the embed message and an icon to the author if a URL is specified.

Fields

Responding to your question, $author[] has 3 properties.
  1. 1.
    text.
  2. 2.
    icon URL.
  3. 3.
    Hyper link (Optional)
Raw Usage: $author[text;icon url;url (optional)]

Options

  • Text - The author text
  • icon URL - The url of the image next to the text
  • HyperLink URL - The URL of the redirect link
The image URL needs to end with .gif, .png or .jpg

Usage

1
bot.command({
2
name: "embed",
3
code: `$author[This is an example!;$authorAvatar]`
4
});
5
​
6
//with hyperlink
7
​
8
bot.command({
9
name: "embed",
10
code: `$author[Aoi.js;$serverIcon;https://aoi.js.org]`
11
});
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub