Class Field
A field for the webhook. A webhook can contain up to 20 fields, and they are shown below the embed's Description. See the Field object structure for more information.
Inheritance
Inherited Members
Namespace: Dishooks.Embeds
Assembly: cs.temp.dll.dll
Syntax
public class Field
Constructors
Field(String, String, Boolean)
Create a new field.
Declaration
public Field(string name, string value, bool inline = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name, or title of the field. |
System.String | value | The value, or body/text of the field. |
System.Boolean | inline | Whether or not this field should display inline. Defaults to false. |
Properties
Inline
Whether or not this field should display inline. Up to 3 fields can be displayed on a single line.
Declaration
public bool? Inline { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Name
The name of the field, usually referred to as the title or key. This has to be between 1-256 characters long, excluding leading and trailing whitespace.
Keep in mind that it can NOT be empty. To have an empty field name, use a zero-width space \u200B
.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Value
The value of the field, usually referred to as the text, or body. This has to be between 1-1024 characters long, excluding leading and trailing whitespace.
Keep in mind that it can NOT be empty. To have an empty field value, use a zero-width space \u200B
.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String |