Class DiscordEmbedData
Represents a discord Embed Object API model. Docs: https://discord.com/developers/docs/resources/channel#embed-object
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Color_Chan.Discord.Core.Common.API.DataModels.Embed
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordEmbedData : IEquatable<DiscordEmbedData>
Properties
| Improve this Doc View SourceAuthor
Author information.
Declaration
[JsonPropertyName("author")]
public DiscordEmbedAuthorData Author { get; set; }
Property Value
Type | Description |
---|---|
DiscordEmbedAuthorData |
Color
Color of the embed.
Declaration
[JsonPropertyName("color")]
public Color? Color { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Color> |
Description
Description of embed.
Declaration
[JsonPropertyName("description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
Fields
Fields information.
Declaration
[JsonPropertyName("fields")]
public IEnumerable<DiscordEmbedFieldData> Fields { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordEmbedFieldData> |
Footer
Footer information.
Declaration
[JsonPropertyName("footer")]
public DiscordEmbedFooterData Footer { get; set; }
Property Value
Type | Description |
---|---|
DiscordEmbedFooterData |
Image
Image information.
Declaration
[JsonPropertyName("image")]
public DiscordEmbedImageData Image { get; set; }
Property Value
Type | Description |
---|---|
DiscordEmbedImageData |
Provider
Provider information.
Declaration
[JsonPropertyName("provider")]
public DiscordEmbedProviderData Provider { get; set; }
Property Value
Type | Description |
---|---|
DiscordEmbedProviderData |
Thumbnail
Thumbnail information.
Declaration
[JsonPropertyName("thumbnail")]
public DiscordEmbedThumbnailData Thumbnail { get; set; }
Property Value
Type | Description |
---|---|
DiscordEmbedThumbnailData |
Timestamp
Timestamp of embed content.
Declaration
[JsonPropertyName("timestamp")]
public DateTimeOffset? Timestamp { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTimeOffset> |
Title
Title of embed.
Declaration
[JsonPropertyName("title")]
public string Title { get; set; }
Property Value
Type | Description |
---|---|
String |
Type
Type of embed (always "rich" for webhook embeds).
Declaration
[JsonPropertyName("type")]
public DiscordEmbedType? Type { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordEmbedType> |
Url
Url of embed.
Declaration
[JsonPropertyName("url")]
public string Url { get; set; }
Property Value
Type | Description |
---|---|
String |
Video
Video information.
Declaration
[JsonPropertyName("video")]
public DiscordEmbedVideoData Video { get; set; }
Property Value
Type | Description |
---|---|
DiscordEmbedVideoData |