Table of Contents

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

radioGroup DiscordRadioGroupComponent

The radio group to add to this modal.

label string

A label text shown above the radio group. Each individual option has its own label.

description string

An optional description for the radio group. Each individual option may have its own description.

Returns

DiscordModalBuilder

The builder instance for chaining.