Table of Contents

Class CheckboxProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class CheckboxProperties : IInteractiveComponentProperties, ILabelComponentProperties, IComponentProperties, IJsonSerializable<ILabelComponentProperties>
Inheritance
CheckboxProperties
Implements
Inherited Members

Constructors

CheckboxProperties(string)

public CheckboxProperties(string customId)

Parameters

customId string

Properties

ComponentType

Type of the component.

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

Property Value

ComponentType

CustomId

Developer-defined identifier for the component (max 100 characters).

[JsonPropertyName("custom_id")]
public string CustomId { get; set; }

Property Value

string

Default

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("default")]
public bool Default { get; set; }

Property Value

bool

Id

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

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

Property Value

int?

Methods

WithCustomId(string)

Developer-defined identifier for the component (max 100 characters).

public CheckboxProperties WithCustomId(string customId)

Parameters

customId string

Returns

CheckboxProperties

WithDefault(bool)

public CheckboxProperties WithDefault(bool @default = true)

Parameters

default bool

Returns

CheckboxProperties

WithId(int?)

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

public CheckboxProperties WithId(int? id)

Parameters

id int?

Returns

CheckboxProperties