Search Results for

    Show / Hide Table of Contents

    Class DiscordEmbed

    Represents a discord Embed Object API model. Docs: https://discord.com/developers/docs/resources/channel#embed-object

    Inheritance
    System.Object
    DiscordEmbed
    Implements
    IDiscordEmbed
    System.IEquatable<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 Source

    DiscordEmbed()

    Initializes a new DiscordEmbed

    Declaration
    public DiscordEmbed()
    | Improve this Doc View Source

    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 Source

    Author

    Author information.

    Declaration
    public IDiscordEmbedAuthor Author { get; set; }
    Property Value
    Type Description
    IDiscordEmbedAuthor
    | Improve this Doc View Source

    Color

    Color of the embed.

    Declaration
    public Color? Color { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Drawing.Color>
    | Improve this Doc View Source

    Description

    Description of embed.

    Declaration
    public string Description { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Fields

    Fields information.

    Declaration
    public IEnumerable<IDiscordEmbedField> Fields { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<IDiscordEmbedField>
    | Improve this Doc View Source

    Footer

    Footer information.

    Declaration
    public IDiscordEmbedFooter Footer { get; set; }
    Property Value
    Type Description
    IDiscordEmbedFooter
    | Improve this Doc View Source

    Image

    Image information.

    Declaration
    public IDiscordEmbedImage Image { get; set; }
    Property Value
    Type Description
    IDiscordEmbedImage
    | Improve this Doc View Source

    Provider

    Provider information.

    Declaration
    public IDiscordEmbedProvider Provider { get; set; }
    Property Value
    Type Description
    IDiscordEmbedProvider
    | Improve this Doc View Source

    Thumbnail

    Thumbnail information.

    Declaration
    public IDiscordEmbedThumbnail Thumbnail { get; set; }
    Property Value
    Type Description
    IDiscordEmbedThumbnail
    | Improve this Doc View Source

    Timestamp

    Timestamp of embed content.

    Declaration
    public DateTimeOffset? Timestamp { get; set; }
    Property Value
    Type Description
    System.Nullable<System.DateTimeOffset>
    | Improve this Doc View Source

    Title

    Title of embed.

    Declaration
    public string Title { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Type

    Type of embed (always "rich" for webhook embeds).

    Declaration
    public DiscordEmbedType? Type { get; set; }
    Property Value
    Type Description
    System.Nullable<DiscordEmbedType>
    | Improve this Doc View Source

    Url

    Url of embed.

    Declaration
    public string Url { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Video

    Video information.

    Declaration
    public IDiscordEmbedVideo Video { get; set; }
    Property Value
    Type Description
    IDiscordEmbedVideo

    Methods

    | Improve this Doc View Source

    ToDataModel()

    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

    IDiscordEmbed
    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX