Class DiscordEmbed
Represents a discord Embed Object API model. Docs: https://discord.com/developers/docs/resources/channel#embed-object
Inheritance
System.Object
DiscordEmbed
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Color_Chan.Discord.Rest.Models.Embed
Assembly: Color-Chan.Discord.Rest.dll
Syntax
public class DiscordEmbed : IDiscordEmbed, IEquatable<DiscordEmbed>
Constructors
| Improve this Doc View SourceDiscordEmbed()
Initializes a new DiscordEmbed
Declaration
public DiscordEmbed()
DiscordEmbed(DiscordEmbedData)
Initializes a new DiscordEmbed
Declaration
public DiscordEmbed(DiscordEmbedData data)
Parameters
Type | Name | Description |
---|---|---|
DiscordEmbedData | data | The data needed to create the DiscordEmbed. |
Properties
| Improve this Doc View SourceAuthor
Author information.
Declaration
public IDiscordEmbedAuthor Author { get; set; }
Property Value
Type | Description |
---|---|
IDiscordEmbedAuthor |
Color
Color of the embed.
Declaration
public Color? Color { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Drawing.Color> |
Description
Description of embed.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Fields
Fields information.
Declaration
public IEnumerable<IDiscordEmbedField> Fields { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordEmbedField> |
Footer
Footer information.
Declaration
public IDiscordEmbedFooter Footer { get; set; }
Property Value
Type | Description |
---|---|
IDiscordEmbedFooter |
Image
Image information.
Declaration
public IDiscordEmbedImage Image { get; set; }
Property Value
Type | Description |
---|---|
IDiscordEmbedImage |
Provider
Provider information.
Declaration
public IDiscordEmbedProvider Provider { get; set; }
Property Value
Type | Description |
---|---|
IDiscordEmbedProvider |
Thumbnail
Thumbnail information.
Declaration
public IDiscordEmbedThumbnail Thumbnail { get; set; }
Property Value
Type | Description |
---|---|
IDiscordEmbedThumbnail |
Timestamp
Timestamp of embed content.
Declaration
public DateTimeOffset? Timestamp { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTimeOffset> |
Title
Title of embed.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
Type of embed (always "rich" for webhook embeds).
Declaration
public DiscordEmbedType? Type { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordEmbedType> |
Url
Url of embed.
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Video
Video information.
Declaration
public 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
public DiscordEmbedData ToDataModel()
Returns
Type | Description |
---|---|
DiscordEmbedData | The converted DiscordEmbedData. |
Implements
System.IEquatable<T>