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
optionsIEnumerable<DiscordRadioGroupComponentOption>The selectable options. Must contain between 2 and 10 entries.
customIdstringThe custom id for this component.
requiredbool?Whether a selection is required.