RadioGroup

Signature

export declare class RadioGroup extends BaseComponentBuilder<APIRadioGroupComponent>

Properties

Methods

setId(id: number): this;

Sets the ID for the radio group.

Parameters
id
The ID for the radio group.
Returns

The current RadioGroup instance.

setCustomId(customId: string): this;

Sets the custom ID for the radio group.

Parameters
customId
The custom ID for the radio group.
Returns

The current RadioGroup instance.

setRequired(required: boolean): this;

Sets whether the radio group is required.

Parameters
required
Whether the radio group is required (true by discord side).
Returns

The current RadioGroup instance.