Embed.Create
Creates an embed which can later be sent to discord via webhook.
Syntax
Embed.Create "title"? "description"? color? *author? *footer? "thumbnail_url"? "image_url"? "clickable_url"? *fields...?
Returns
reference to DEmbed object
Arguments
| Name | Required | Type | Description |
|---|---|---|---|
title | No | Any text e.g. "Hello, World!" | The bold header text at the top. |
description | No | Any text e.g. "Hello, World!" | The main body text of the embed. |
color | No | Color in format RRGGBB or RRGGBBAA. | The vertical sidebar color. |
author | No | a reference to DEmbedAuthor object. | Created using Embed.CreateAuthor |
footer | No | a reference to DEmbedFooter object. | Created using Embed.CreateFooter |
thumbnail url | No | Any text e.g. "Hello, World!" | The source link for the thumbnail. |
image url | No | Any text e.g. "Hello, World!" | The source link for the image. |
clickable url | No | Any text e.g. "Hello, World!" | Makes the title a clickable hyperlink. |
fields | No | a reference to DEmbedField object. | List of fields, created using Embed.CreateField |
Details
This method does NOT send the embed. Use Discord.SendMessage for that.
Validated examples using this method
On a running server
Use serhelp Embed.Create to inspect the reference generated by your installed SER version.