Table of Contents

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

IExpression

Description

Gets and sets the expression to resolve the description.

public IExpression? Description { get; set; }

Property Value

IExpression

Gets and sets the expression to resolve the footer text.

public IExpression? Footer { get; set; }

Property Value

IExpression

ImageUrl

Gets and sets the expression to resolve the image url.

public IExpression? ImageUrl { get; set; }

Property Value

IExpression

ThumbnailUrl

Gets and sets the expression to resolve the thumbnail url.

public IExpression? ThumbnailUrl { get; set; }

Property Value

IExpression

Title

Gets and sets the expression to resolve the title.

public IExpression? Title { get; set; }

Property Value

IExpression

Url

Gets and sets the expression to resolve the target url.

public IExpression? Url { get; set; }

Property Value

IExpression

Methods

BuildAsync(RuntimeContext)

Builds the Discord.Embed object.

public Task<Embed> BuildAsync(RuntimeContext context)

Parameters

context RuntimeContext

The runtime context.

Returns

Task<Embed>