Skip to main content

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​

NameRequiredTypeDescription
titleNoAny text e.g. "Hello, World!"The bold header text at the top.
descriptionNoAny text e.g. "Hello, World!"The main body text of the embed.
colorNoColor in format RRGGBB or RRGGBBAA.The vertical sidebar color.
authorNoa reference to DEmbedAuthor object.Created using Embed.CreateAuthor
footerNoa reference to DEmbedFooter object.Created using Embed.CreateFooter
thumbnail urlNoAny text e.g. "Hello, World!"The source link for the thumbnail.
image urlNoAny text e.g. "Hello, World!"The source link for the image.
clickable urlNoAny text e.g. "Hello, World!"Makes the title a clickable hyperlink.
fieldsNoa 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.