Class JsonComponent
- Namespace
- NetCord.JsonModels
- Assembly
- NetCord.dll
public class JsonComponent
- Inheritance
-
JsonComponent
- Inherited Members
-
Constructors
JsonComponent()
Properties
AccentColor
[JsonPropertyName("accent_color")]
public Color? AccentColor { get; set; }
Property Value
- Color?
Accessory
[JsonPropertyName("accessory")]
public JsonComponent? Accessory { get; set; }
Property Value
- JsonComponent
ChannelTypes
[JsonPropertyName("channel_types")]
public ChannelType[]? ChannelTypes { get; set; }
Property Value
- ChannelType[]
Components
[JsonPropertyName("components")]
public JsonComponent[]? Components { get; set; }
Property Value
- JsonComponent[]
Content
[JsonPropertyName("content")]
public string? Content { get; set; }
Property Value
- string
CustomId
[JsonPropertyName("custom_id")]
public string? CustomId { get; set; }
Property Value
- string
DefaultValues
[JsonPropertyName("default_values")]
public JsonSelectMenuDefaultValue[]? DefaultValues { get; set; }
Property Value
- JsonSelectMenuDefaultValue[]
Description
[JsonPropertyName("description")]
public string? Description { get; set; }
Property Value
- string
Disabled
[JsonPropertyName("disabled")]
public bool? Disabled { get; set; }
Property Value
- bool?
Divider
[JsonPropertyName("divider")]
public bool? Divider { get; set; }
Property Value
- bool?
Emoji
[JsonPropertyName("emoji")]
public JsonEmoji? Emoji { get; set; }
Property Value
- JsonEmoji
File
[JsonPropertyName("file")]
public JsonComponentMedia? File { get; set; }
Property Value
- JsonComponentMedia
Id
[JsonPropertyName("id")]
public int Id { get; set; }
Property Value
- int
Items
[JsonPropertyName("items")]
public JsonComponent[]? Items { get; set; }
Property Value
- JsonComponent[]
Label
[JsonPropertyName("label")]
public string? Label { get; set; }
Property Value
- string
MaxLength
[JsonPropertyName("max_length")]
public int? MaxLength { get; set; }
Property Value
- int?
MaxValues
[JsonPropertyName("max_values")]
public int? MaxValues { get; set; }
Property Value
- int?
[JsonPropertyName("media")]
public JsonComponentMedia? Media { get; set; }
Property Value
- JsonComponentMedia
MinLength
[JsonPropertyName("min_length")]
public int? MinLength { get; set; }
Property Value
- int?
MinValues
[JsonPropertyName("min_values")]
public int? MinValues { get; set; }
Property Value
- int?
Options
[JsonPropertyName("options")]
public JsonMenuSelectOption[] Options { get; set; }
Property Value
- JsonMenuSelectOption[]
Placeholder
[JsonPropertyName("placeholder")]
public string? Placeholder { get; set; }
Property Value
- string
Required
[JsonPropertyName("required")]
public bool? Required { get; set; }
Property Value
- bool?
SkuId
[JsonPropertyName("sku_id")]
public ulong? SkuId { get; set; }
Property Value
- ulong?
Spacing
[JsonPropertyName("spacing")]
public ComponentSeparatorSpacingSize? Spacing { get; set; }
Property Value
- ComponentSeparatorSpacingSize?
Spoiler
[JsonPropertyName("spoiler")]
public bool? Spoiler { get; set; }
Property Value
- bool?
Style
[JsonPropertyName("style")]
public ButtonStyle? Style { get; set; }
Property Value
- ButtonStyle?
Type
[JsonPropertyName("type")]
public ComponentType Type { get; set; }
Property Value
- ComponentType
Url
[JsonPropertyName("url")]
public string? Url { get; set; }
Property Value
- string
Value
[JsonPropertyName("value")]
public string? Value { get; set; }
Property Value
- string