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
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 SourceDiscordEmbedField()
Initializes a new DiscordEmbedField
Declaration
public DiscordEmbedField()
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 SourceInline
Whether or not this field should display inline.
Declaration
public bool? Inline { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Name
Name of the field.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Value
Value of the field.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 DiscordEmbedFieldData ToDataModel()
Returns
Type | Description |
---|---|
DiscordEmbedFieldData | The converted DiscordEmbedFieldData. |
Implements
System.IEquatable<T>