Method AddRadioGroup
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
AddRadioGroup(DiscordRadioGroupComponent, string, string?)
Adds a radio group to this modal.
public DiscordModalBuilder AddRadioGroup(DiscordRadioGroupComponent radioGroup, string label, string? description = null)
Parameters
radioGroupDiscordRadioGroupComponentThe radio group to add to this modal.
labelstringA label text shown above the radio group. Each individual option has its own label.
descriptionstringAn optional description for the radio group. Each individual option may have its own description.
Returns
- DiscordModalBuilder
The builder instance for chaining.