Class DiscordEmbed
- Namespace
- BotManager.Discord.Models
- Assembly
- BotManager.Discord.dll
Returns a Discord embed message object. Embeds are formatted messages with title, description, a preview image, author and footer. This can be used in DiscordSend and DiscordRespond.
public sealed class DiscordEmbed
- Inheritance
-
DiscordEmbed
- Inherited Members
Constructors
DiscordEmbed()
public DiscordEmbed()
Properties
Author
Gets and sets the expression to resolve the author name.
public IExpression? Author { get; set; }
Property Value
Description
Gets and sets the expression to resolve the description.
public IExpression? Description { get; set; }
Property Value
Footer
Gets and sets the expression to resolve the footer text.
public IExpression? Footer { get; set; }
Property Value
ImageUrl
Gets and sets the expression to resolve the image url.
public IExpression? ImageUrl { get; set; }
Property Value
ThumbnailUrl
Gets and sets the expression to resolve the thumbnail url.
public IExpression? ThumbnailUrl { get; set; }
Property Value
Title
Gets and sets the expression to resolve the title.
public IExpression? Title { get; set; }
Property Value
Url
Gets and sets the expression to resolve the target url.
public IExpression? Url { get; set; }
Property Value
Methods
BuildAsync(RuntimeContext)
Builds the Discord.Embed object.
public Task<Embed> BuildAsync(RuntimeContext context)
Parameters
contextRuntimeContextThe runtime context.
Returns
- Task<Embed>