Table of Contents

Class RadioGroupProperties

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

Constructors

RadioGroupProperties(string)

public RadioGroupProperties(string customId)

Parameters

customId string

RadioGroupProperties(string, IEnumerable<RadioGroupOptionProperties>)

public RadioGroupProperties(string customId, IEnumerable<RadioGroupOptionProperties> options)

Parameters

customId string
options IEnumerable<RadioGroupOptionProperties>

Properties

ComponentType

Type of the component.

public ComponentType ComponentType { get; }

Property Value

ComponentType

CustomId

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

public string CustomId { get; set; }

Property Value

string

Id

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

public int? Id { get; set; }

Property Value

int?

Options

public IEnumerable<RadioGroupOptionProperties> Options { get; set; }

Property Value

IEnumerable<RadioGroupOptionProperties>

Required

public bool? Required { get; set; }

Property Value

bool?

Methods

AddOptions(params IEnumerable<RadioGroupOptionProperties>)

public RadioGroupProperties AddOptions(params IEnumerable<RadioGroupOptionProperties> options)

Parameters

options IEnumerable<RadioGroupOptionProperties>

Returns

RadioGroupProperties

WithCustomId(string)

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

public RadioGroupProperties WithCustomId(string customId)

Parameters

customId string

Returns

RadioGroupProperties

WithId(int?)

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

public RadioGroupProperties WithId(int? id)

Parameters

id int?

Returns

RadioGroupProperties

WithOptions(IEnumerable<RadioGroupOptionProperties>)

public RadioGroupProperties WithOptions(IEnumerable<RadioGroupOptionProperties> options)

Parameters

options IEnumerable<RadioGroupOptionProperties>

Returns

RadioGroupProperties

WithRequired(bool?)

public RadioGroupProperties WithRequired(bool? required = true)

Parameters

required bool?

Returns

RadioGroupProperties