Table of Contents

Constructor DiscordRadioGroupComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

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

Creates a new radio group component with the provided options.

public DiscordRadioGroupComponent(IEnumerable<DiscordRadioGroupComponentOption> options, string? customId = null, bool? required = null)

Parameters

options IEnumerable<DiscordRadioGroupComponentOption>

The selectable options. Must contain between 2 and 10 entries.

customId string

The custom id for this component.

required bool?

Whether a selection is required.