Table of Contents

Class ComponentSeparatorProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class ComponentSeparatorProperties : IComponentProperties
Inheritance
ComponentSeparatorProperties
Implements
Inherited Members

Constructors

ComponentSeparatorProperties()

public ComponentSeparatorProperties()

Properties

ComponentType

Type of the component.

[JsonPropertyName("type")]
public ComponentType ComponentType { get; }

Property Value

ComponentType

Divider

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("divider")]
public bool? Divider { get; set; }

Property Value

bool?

Id

Unique identifier for the component. Auto populated through increment if not provided.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("id")]
public int? Id { get; set; }

Property Value

int?

Spacing

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("spacing")]
public ComponentSeparatorSpacingSize? Spacing { get; set; }

Property Value

ComponentSeparatorSpacingSize?

Methods

WithDivider(bool?)

public ComponentSeparatorProperties WithDivider(bool? divider = true)

Parameters

divider bool?

Returns

ComponentSeparatorProperties

WithId(int?)

public ComponentSeparatorProperties WithId(int? id)

Parameters

id int?

Returns

ComponentSeparatorProperties

WithSpacing(ComponentSeparatorSpacingSize?)

public ComponentSeparatorProperties WithSpacing(ComponentSeparatorSpacingSize? spacing)

Parameters

spacing ComponentSeparatorSpacingSize?

Returns

ComponentSeparatorProperties