Search Results for

    Show / Hide Table of Contents

    Class DiscordEmbedField

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

    Inheritance
    System.Object
    DiscordEmbedField
    Implements
    IDiscordEmbedField
    System.IEquatable<DiscordEmbedField>
    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 DiscordEmbedField : IDiscordEmbedField, IEquatable<DiscordEmbedField>

    Constructors

    | Improve this Doc View Source

    DiscordEmbedField()

    Initializes a new DiscordEmbedField

    Declaration
    public DiscordEmbedField()
    | Improve this Doc View Source

    DiscordEmbedField(DiscordEmbedFieldData)

    Initializes a new DiscordEmbedField

    Declaration
    public DiscordEmbedField(DiscordEmbedFieldData data)
    Parameters
    Type Name Description
    DiscordEmbedFieldData data

    The data needed to create the DiscordEmbedField.

    Properties

    | Improve this Doc View Source

    Inline

    Whether or not this field should display inline.

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

    Name

    Name of the field.

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

    Value

    Value of the field.

    Declaration
    public string Value { get; set; }
    Property Value
    Type Description
    System.String

    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 DiscordEmbedFieldData ToDataModel()
    Returns
    Type Description
    DiscordEmbedFieldData

    The converted DiscordEmbedFieldData.

    Implements

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