Table of Contents

Class DiscordRadioGroupComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents a radio group component. Modal-only.

public sealed class DiscordRadioGroupComponent : DiscordComponent, ILabelComponent
Inheritance
DiscordRadioGroupComponent
Implements
Inherited Members

Constructors

DiscordRadioGroupComponent(IEnumerable<DiscordRadioGroupComponentOption>, string?, bool?)

Creates a new radio group component with the provided options.

Properties

CustomId

The custom id for this component.

Options

The available options.

Required

Whether the component requires a selection.

SelectedValue

The submitted value. Present on modal submit interactions.

Methods

WithId(int)

Assigns a unique id to this component.