Interface IDiscordEmbed
Represents a discord Embed Object API model. Docs: https://discord.com/developers/docs/resources/channel#embed-object
Namespace: Color_Chan.Discord.Core.Common.Models.Embed
Assembly: Color-Chan.Discord.Core.dll
Syntax
public interface IDiscordEmbed
Properties
| Improve this Doc View SourceAuthor
Author information.
Declaration
IDiscordEmbedAuthor Author { get; set; }
Property Value
Type | Description |
---|---|
IDiscordEmbedAuthor |
Color
Color of the embed.
Declaration
Color? Color { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Color> |
Description
Description of embed.
Declaration
string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
Fields
Fields information.
Declaration
IEnumerable<IDiscordEmbedField> Fields { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordEmbedField> |
Footer
Footer information.
Declaration
IDiscordEmbedFooter Footer { get; set; }
Property Value
Type | Description |
---|---|
IDiscordEmbedFooter |
Image
Image information.
Declaration
IDiscordEmbedImage Image { get; set; }
Property Value
Type | Description |
---|---|
IDiscordEmbedImage |
Provider
Provider information.
Declaration
IDiscordEmbedProvider Provider { get; set; }
Property Value
Type | Description |
---|---|
IDiscordEmbedProvider |
Thumbnail
Thumbnail information.
Declaration
IDiscordEmbedThumbnail Thumbnail { get; set; }
Property Value
Type | Description |
---|---|
IDiscordEmbedThumbnail |
Timestamp
Timestamp of embed content.
Declaration
DateTimeOffset? Timestamp { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTimeOffset> |
Title
Title of embed.
Declaration
string Title { get; set; }
Property Value
Type | Description |
---|---|
String |
Type
Type of embed (always "rich" for webhook embeds).
Declaration
DiscordEmbedType? Type { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordEmbedType> |
Url
Url of embed.
Declaration
string Url { get; set; }
Property Value
Type | Description |
---|---|
String |
Video
Video information.
Declaration
IDiscordEmbedVideo Video { get; set; }
Property Value
Type | Description |
---|---|
IDiscordEmbedVideo |
Methods
| Improve this Doc View SourceToDataModel()
Converts the model back to a discord data model so that it can be send to discord.
Declaration
DiscordEmbedData ToDataModel()
Returns
Type | Description |
---|---|
DiscordEmbedData | The converted DiscordEmbedData. |